I'm guessing that your automount is located under /media.
I had the same problem, very short-lived processes were triggering my automount every few minutes. Capturing any info about them was remarkably challenging.
For the record, what I did was:

First, launch a shell with stdbuf -i0 -oL -eL bash
(This launches a shell with buffering of pipes adjusted to send every line right away, instead of the default which will buffer a bunch of output before it actually sends anything.)
In that shell, run this hideous command-line, which I really should have formatted into a proper script in a .sh file but didn't: \

journalctl --unit UNITNAME.automount -f | grep -oP '(?<=^|[^0-9])[0-9]{4,}(?=[^0-9]|$)' | while read pid; do if [ -e /proc/"$pid"/status ] ; then if [ -e proc-capture/"$pid" ] ; then echo "Already captured PID $pid. Ignoring"; else echo "Capturing $pid."; mkdir proc-capture/"$pid"; cp /proc/"$pid"/status proc-capture/"$pid"; fi; else echo "No current status for PID $pid. Skipping"; fi; done

(Adjusting the unit names as needed and the output directory if you like.)

Wait.

Note: You may need root for this. I always add my own regular user account to group adm, which gives read access to system log stuff including journalctl (on Debian, but I would guess that's the same on Ubuntu), so I didn't need sudo or anything for the script to work.
Then, whenever the polling process fires up and does its thing, the script will copy its /proc/<PID>/status into proc-capture/<PID>/ (under your current working directory) immediately, before the process ends and that status file ceases to exist. That file will tell you the PPID, that is, the PID of the parent of the PID in question. In my case, the parent was systemd, doing whatever behind-the-scenes magic is involved in automatically mounting USB drives under /media the moment they're plugged in and such. It may be possible to configure that subsystem to ignore specified directories under /media, but in my case just moving the automount from /media to /mnt made the problem go away so I didn't dig any deeper.


Crackling sound when using headphones - 16.04

May be there is problem with your audio jack. Try some other headphones with your system if it is crackling again then there are chances that this problem is due to your audio jack.


Ubuntu 20.04. Two network cards. Netplan. Can't configure in parallel

Why do you configure default routes (to: 0.0.0.0/0) on both cards? This will not work correctly when both NICs are up and a connection is attempted from a non-local network. Most likely you will use the default route only on the NIC connected to the internet (enp4s0) and you will have to add explicit routes (192.168.1.0 and 192.168.2.0) to the local NIC's (enp2s5) IPs


Some chars can't be printed in standard output

The problem was solved by the following commands:

sudo update-locale LANGUAGE=fr_FR.UTF-8
sudo update-locale LANG=fr_FR.UTF-8


Disable zoom on Wacom Bamboo Pad (CTH-300)

I assume that you are facing this problem on firefox (xubuntu) so this is help for you further.

  1.Run Firefox.

  2.In the address bar, type about:config and hit Enter on your key. You will be shown a warning message and asked if you want to continue.
  Click I’ll be careful, I promise.

  3.You need to type in mousewheel.with_meta.action in search bar

  4.Finally, double-click mousewheel.with_meta.action from Preference Name, enter 0 (the number zero) in the dialog box that opens, and
  click OK:

  5.Done! If you have some websites zoomed in, be sure to clear browsing history to remove the zoom… and then never worry about this annoying
  as hell feature again.

OR

$xinput | grep -i touchpad

check if you touch pad is visible & go forward.

in the file
/etc/X11/xorg.conf.d/50-synaptics.conf    or /etc/X11/Xsession.d/50-synaptics.conf

Section "InputClass"
    Identifier "touchpad"
    Driver "synaptics"
    MatchIsTouchpad "on"
        Option "TapButton1" "1"
        Option "TapButton2" "2"
        Option "TapButton3" "3"
        Option "VertEdgeScroll" "on"
        Option "VertTwoFingerScroll" "on"
        Option "HorizEdgeScroll" "on"
        Option "HorizTwoFingerScroll" "on"
        Option "CircularScrolling" "on"
        Option "CircScrollTrigger" "2"
        Option "EmulateTwoFingerMinZ" "40"
        Option "EmulateTwoFingerMinW" "8"
        Option "CoastingSpeed" "0"
        Option "FingerLow" "35"
        Option "FingerHigh" "40"
        ... EndSection

edit according to your need.

Caution

note if you dont have this folder/file create it and add the following file in it.

reference


I had the very same issue and following Eerik Muuli's advice, everything is working just fine now.

  What seemed to fix the problem for me was that I switched to the Nvidia GPU driver from the additional drivers menu.


You may wish to try configuring your mobile connections with a simple tweak: checking the Use this connection only for the resources on its network checkbox, which is hidden a little far unfortunately:

Under the settings for your connection, go to the IPv4 tab, click the Routes button, then check the last checkbox on that dialog.

Not tested, but roughly, what should be happening is each pppX device should be getting enabled with correct routes through each of your providers' networks, but the default route should not get set to pass over any of them.

You should then be able to write a simple script that, for instance, pings the same server from each of the interfaces and chooses the fastest one to set the default route; something like:

route_candidate=$(
for iface in `ifconfig -a | grep ppp | awk '{print $1; }'`; do
    echo $iface = `ping -I $iface -c 1 -q 8.8.8.8 | grep avg | awk -F/ '{print $5;}'`
done | sort -k 3 -rn | head -n 1
)

logger "Setting new route from candidate: $route_candidate"

ip route del default
ip route add default dev `echo $route_candidate | awk '{print $1;}'`

I didn't test this completely, but it's roughly what needs to be done; with the addition or modification of using "via whatever_the_default_gw_ip_is" for the ip route add default command. Run this with cron on a regular interval and you have a cheapo system for staying on the "fastest" ISP.


NVIDIA drivers for Geforce 720m on Ubuntu 13.10

Did you try this driver? It looks like an older version, but it's made especially for your graphics card.


What is the Ubuntu equivalent of OSX `chmod -h` flag?

Not possible. There is no way since permissions on a symlink are meaningless (a symlink is not a file; it only points to a file).  The way to do this with Linux is through ACL though.

symlink are explained as...

  The values of the file mode bits for the created symbolic link are unspecified. All interfaces specified by POSIX.1-2008 shall behave as if the contents of symbolic links can always be read, except that the value of the file mode bits returned in the st_mode field of the stat structure is unspecified.

The difference is here: chmod and chmod... it is BSD versus Linux.

Not sure if it is important but regarding SSH: it uses  stat(2), not lstat(2) to get the permissions.

stat() stats the file pointed to by path and fills in buf.
lstat() is identical to stat(), except that if path is a symbolic link, then the link itself is stat-ed, not the file that it refers to.


A driver depends on OpenGL, what package provides it?

Mesa's OpenGL libraries is provided by libgl1-mesa-glx. The development headers can be found in the libgl1-mesa-dev package.


Is SSH enabled by default on ubuntu 20.10 64bit for raspberry pi 4 - ARM64

Yes, ssh is enabled on Ubuntu Server 20.10. You need to wait a little after the first boot, I think it is expanding the filesystem first which takes time.


This should do (no need for grep):
#!/bin/sh

adb logcat | sed -n '
/Average inference/ {
    s/.*Warmup: //
    s/[^0-9]\{2,\}/ /g
    # Optional: remove the trailing space.
    s/ $//
    p
}
'

/Average inference/ will only match lines containing 'Average inference'.
s/.*Warmup: // makes sed discard anything before the first occurrence of 'Warmup: '.
s/[^0-9]\{2,\}/ /g will replace every two or more consecutive non-digit characters with a space. The decimal point will be preserved since it is surrounded by digits.
s/ $// will trim the trailing space introduced by s/[^0-9]\{2,\}/ /g when ' MB' was replaced in the end of the line.
p is used in combination with -n flag in order to make sed only output the modified lines.
Note: You may write the sed command in one line like this:
sed -n '/Average inference/{s/.*Warmup: //;s/[^0-9]\{2,\}/ /g;s/ $//;p}'


In your ~/.profile you find these lines:

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

It is here that, if exists as a directory, ~/bin is added to your PATH.


Failed to load the package list (trying to install flash player) (Lubuntu 13.04)

The line 60 of your sources.list has something that it shouldn't have. You can fix the line using sed:

sudo sed -e '60d' /etc/apt/sources.list

The -e edit the file in place, the 60 indicates the line, d indicates that stop right there.


Home directory or disk encryption without filename encryption

Cloning

Clonezilla will clone the current system's drive either directly to a cloned copy or to a compressed image, that can be restored to a cloned copy.

This will preserve the current partition structure, file system and encryption, and will work as a backup, but it is not very useful in order to convert the system to another kind of partition structure (LVM with LUKS encryption).

Fresh installation often easiest and fastest

It is often easiest and fastest to make a fresh installation instead of converting from the previous system.

Backup your personal files to another drive. You can use rsync or tar or some specialized backup program for this purpose.
It might be a good idea to have a general backup too, and this backup can be made with Clonezilla. In that case I suggest that you make an image of the whole drive.
Install a fresh system, in this case select Entire disk with LVM and encryption.
Install the additional program packages that you remember (that you need).
Copy back your personal files from the backup. It helps if you use a separate data partition for your personal data (but it is not necessary).
Later on, when you need another program package, install it. This way you will get rid of old program packages, that you will not use.

Ask for details (in comments), if you have questions or need detailed explanations of some step, or if you want to modify something from this general outline.


I need help installing a canon mp620 printer

I had the same problem with the Canon MP620 (on Ubuntu 13.10 and 14.04) and fixed it by following the advice here.

One of the posts suggests using BJNP, a protocol used by Canon printers. Following this advice, I tried adding the printer using the device URI: "bjnp://xxx.xxx.xx.xxx:8611", where 'xxx.xxx.xx.xxx' is the printer IP address.

You may have to make an exception for the relevant port in UFW to get the scanner to work, in this case:

sudo ufw allow 8611

After that I found both printing and scanning work flawlessly.

Hope that helps.


I want to read my *.bok in Ubuntu 16.04?

I tried some apps like
Maktabah Al-Miftah, Maktaba El-Kirtasse, Xbook, Thawab, but Only Thawab that renders Arabic words correctly in Ubuntu 16.04

Now, I used Thawab for open file with extension .bok In Ubuntu 16.04

sudo apt-get update
sudo apt-get install thawab


How to change partition of Ubuntu without losing any data?

Let's rephrase what you are asking for. You want to:

Borrow or purchase the additional resources you will need:

External backup media of sufficient size
Windows install USB
Ubuntu install USB
Network connection and capability to look up problems that you encounter on a different device
An entire uninterrupted day

Good preparation is critical. What you are about to do is likely to lose your data if you are unprepared.

Backup your Ubuntu data onto the backup media
Wipe the HDD
Install Windows onto the HDD
Test your new Windows install
Copy your Windows data across from the SSD, and test that you can access the data from Windows.
Wipe the SSD
Install Ubuntu onto the SSD
Test your new Ubuntu install
Restore your Ubuntu data from the backup, and test that you can access the data from Ubuntu.


Depends. By default, when you add a repo (PPA or otherwise), two entries get created: one for the regular binary packages and one for the source code. For PPAs, the source code isn't directly downloadable through apt-get, so I personally have those entries disabled. For non-PPAs, it depends on the provider. You can remove these sources entries (labelled with "(Source Code)") without any major downside to the stability of the system; you just won't be able to download the sources as easily. You could also remove unchecked non-source entries, since apt-get and other frontends effectively consider those as non-existant.
Don't disable the universe repo unless you have a very good reason. While the default Ubuntu installation doesn't use anything from this repo (to the best of my knowledge), there are tons of software in this repo that you can easily install (as compared to downloading from the website). There's a good chance that you are using software from this repo, and disabling this repo would disable updates to the programs you are using. For example, the Chromium browser and KDE packages are in the universe repo. The XFCE terminal (which should be included in Xubuntu) is in the universe repo.
The Spotify example you listed isn't exactly a duplicate entry (one is for the binary packages and the other is for the source packages), but there are source code duplicates for the webupd8team/java PPA that you can (and should) remove.


/boot: Initial boot (kernel/initramfs) images and other boot configuration. DO NOT restore.
/etc: Usually all kinds of configuration files for the system and other applications. DO NOT restore except for single configuration files for specific applications.
/etc/apache2 and /etc/mysql: reinstall and intelligently merge/copy old configuration over to new config files.
/var/backups: most are dynamically created and managed by the system. DO NOT restore.
/var/cache: same as above, DO NOT restore.
/var/lib, /var/lib/mysql, /var/www, etc.: restore only the DATA (or import it, etc.) after reinstalling the applications (apache, mysql, etc.).


Can I use another computer as a second monitor?

I believe with the Nvidia-xserver-settings you can accomplish that provided you have an Nvidia card. You select twinview mode and designate the external monitor as primary and the laptop screen as secondary. That should do the trick.

If you have other graphic cards I am not sure how to do that.


How i can add bookmarks in files or Pantheon Files 0.1

Go to the folder you want and press Ctrl+Dand voilà! the bookmarks shows!


I don't use the HUD that much, so I changed its shortcut to Alt+z and now Alt focuses the menu bar.

1: Open "System Settings"

2: Navigate to "Keyboard" and switch to the "Shortcuts" tab.

3: Under "Launchers" in the left column will be "Key to Show the HUD"

4: Click on "Alt" in the other end of the row and press the key you want to use instead.  (In my case Alt+z)

This will actually set all Alt based shortcuts to what they would normally be, for example Alt+d focuses the address bar.


How can I make a virtual router on Ubuntu 12.04?

Run this in a terminal:

sudo apt-get install hostapd

Then, open a text editor program, for example gedit. Copy the following into it.

interface=wlan0
driver=nl80211
ssid=
channel=1
hw_mode=g
auth_algs=1
wpa=3
wpa_passphrase=
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP

Don't forget to fill in the name of your network after ssid= as well as the password after wpa_passphrase=.

After all these, save the file as hostapd.conf in your home folder.

Now, in your terminal:

sudo hostapd hostapd.conf

Turn the Wi-Fi connection on in your devices and enjoy the fast network share!

you might also want to add dhcpd to assign address to your Android device. Alternatively you can configure iptables to use NAT


Xubuntu installation: "ERROR atombios stuck in loop for more than 5secs"

very early in the boot process you get a screen with this symbol:
 at the lower bottom of the screen.
If you the press any key you will get to this:

Select your preffered language, and you will get to this screen:

Here you can either select one of the safe graphic modes or you could press F6 followed by Esc and there will appear the Boot Options on the screen.
Now you can enter the boot option - ¡ other than in the picture, the correct option is radeon.runpm=0 ! - so it will look (something) like this:

Hit enter and off you go!
P.S: You can change the boot option for any of the first 4 entries.


Where can I install ubuntu if I have 4 primary partitions?

Hard drives are indeed limited to 4 primary partitions. Luckily for us multi-booters, if you create an extended partition, it can serve as a container for additional primary partitions. The problem is, since an extended partition counts as a primary partition, if you've already hit the limit, you would need to remove a partition and recreate it within a new extended partition. Since you said that your partition manager complained, it looks like you've hit that limit. So, my best advice is to see if you can safely delete and recreate one of your partitions. Your best option may be to do so with Backtrack's partition. If you have a spare hard drive, you could probably clone that partition to it and restore it back onto a new partition within your extended partition.

Unfortunately, that's the only solution I know of. More experienced guys can probably give some more insight, but hopefully this will prove helpful at least for now. Best of luck to you!


How to disconnect ONLY my browser from internet temporarily?

Never mind I got it :3. If anyone wants to know...you go to the little 3 bars in the corner of the screen (chrome) > settings > scroll down to the text that says "Show advanced settings..." > click that > scroll down to the button that says "Change proxy settings..." > click that > click the tab that says "connections" > click "LAN settings" > click the box under "proxy server" that says "Use a proxy server for your LAN" > type in a random 11 digit number > click "OK".

You can change these settings back when ever you like just follow the steps again and un-check the box under "proxy server" that says "Use a proxy server for your LAN" > click "OK".

Hope this helped! :D


Will the 20GB space be available for free after the expiration of 6-months valid music track?

No, you would need to get enough referrals to get the 20GB for free, or pay for more storage, or renew your streaming plan. The 20GB you get with the music streaming is included in that plan, and not a free-for-forever addition to your account separate from the streaming, when you purchase the plan.


Wifi has stopped working in Ubuntu 14.04 desktop

[UPDATE:]
Well, this is bizarre. I continued using the PC with a wired connection until the end of the day. This morning it connected (at the 2nd attempt) to wifi. Running lshw again, I find this -- presumably crucial -- difference:

wireless=IEEE 802.11bgn

and with iwconfig:

wlan0     IEEE 802.11bgn  ESSID:"VM547009-2G"  Nickname:"rtl_wifi"
      Mode:Managed  Frequency:2.437 GHz  Access Point: C4:04:15:F2:81:E0
      Bit Rate:72 Mb/s   Sensitivity:0/0
      Retry:off   RTS thr:off   Fragment thr:off
      Power Management:off
      Link Quality=98/100  Signal level=100/100  Noise level=0/100

So, although my immediate problem seems to have resolved itself, I would be grateful to anyone who can tell me what happened / what I did wrong / how I can avoid this happening again in future!


You should stop copying code blocks from untrusted bad-formatted blogs.
Use Shift+\ to enter pipe character | to get the command below:
sudo ss -tupln | grep openvpn

Technically the ׀ and | are absolutely different symbols:
$ printf "׀" | hexdump
0000000 80d7
0000002

$ printf "|" | hexdump
0000000 007c
0000001


How do I create an encrypted archive containing specific files?

Given that the question was tagged with zip, you're probably looking for something like this:

$ ls /etc/*.conf | xargs zip myfile.zip -e


Boot error while booting Ubuntu with USB

Nevermind problem fixed. I followed instructions from a different thread comment!

"OS Uninstaller will remove your Windows partition and fix your Grub bootloader.

enter the following int he terminal:

sudo add-apt-repository ppa:yannubuntu/os-uninstaller
sudo apt-get update
sudo apt-get install -y os-uninstaller && os-uninstaller

The program will install and start, it will look something like this:

Just select Windows Vista in the menu and the click ok.

Click Apply The program will do the rest.

You can read more about OS-Uninstaller HERE

P.S. this is how I removed my Windows 7 from my computer, so I know it works."


How do I install the kernel 3-11.2 on Ubuntu 13.04?

How to install Kernel 3.11.2 on 32 bit Ubuntu, Linux Mint, Debian, Elementary OS and Pear OS systems:

Download the needed packages:

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.2-saucy/linux-headers-3.11.2-031102_3.11.2-031102.201309262136_all.deb
wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.2-saucy/linux-image-3.11.2-031102-generic_3.11.2-031102.201309262136_i386.deb
wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.2-saucy/linux-headers-3.11.2-031102-generic_3.11.2-031102.201309262136_i386.deb

How to install Kernel 3.11.2 on 64 bit Ubuntu, Linux Mint, Debian, Elementary OS and Pear OS systems:

Download the needed packages:

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.2-saucy/linux-headers-3.11.2-031102_3.11.2-031102.201309262136_all.deb
wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.2-saucy/linux-headers-3.11.2-031102-generic_3.11.2-031102.201309262136_amd64.deb
wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.2-saucy/linux-image-3.11.2-031102-generic_3.11.2-031102.201309262136_amd64.deb

Install Kernel 3.11.2:

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


Virtualbox - how to passthrough modem from ubuntu host to windows guest

To pass trough an USB device from host to guest in Virtual Box we need the following prerequisites (also see this question & answer):

Install the Oracle Extension Pack for USB 2.0 support.
Become a member of the group vboxusers.
Activate USB support in the Virtual Box Manager.
Select the host-device to be captured by the guest.

Sometimes an USB device may be recognized by the host but can not be captured with steps above. For these devices we may have more luck to set up an USB device filter. There may still be devices that can not be added. These devices may then not be supported, and unfortunately can't be used.

An USB device filter can be added with the Virtual Box Manager on selecting + in the USB device filter section (also see link above). Any device matching an entry in these filter settings will then be captured by the virtual machine on start-up.

To list possible entries for a filter we may also issue:

VBoxManage list usbhost

This command will list all available and recognized USB devices.

As a minimum a vendorID and the productID is recommended for an USB filter. These can also be listed and read with

lsusb -v

In rare cases a virtual machine will not be able to boot after we had attached a device by a filter. Then we can not use this device in a virtual machine.


Small internal drive, need far more space in /tmp, shall I put it on external drive or internal one?

To keep matters clean and tidy, consider using Stacer from the Ubuntu Software Center and use the System Cleaner option to clear down unnecessary files.
Alternatively, open a terminal and enter the command
sudo apt install stacer


Why can't I wake up the system after upgrade to 16.04?

This appears to be a bug related to the 4.4.0 kernel. You can either wait for the official update, or install 4.4.8 as explained here, which fixed it for me.


Please check out my answer here. There are steps to check which swap partitions are in use and instructions on making the OS use them.


"Not all requested modules can be enabled" error when starting a new Netbeans project

This problem mostly happens when you use default settings while installing NetBeans. As a result, file netbeans.conf has incorrect location of JAVA_HOME. This issue can be easily resolved when we provide correct path for the location of JAVA_HOME.

To find location of JAVA_HOME on your system open terminal by pressing Ctrl+Alt+T. Then in terminal type following command.

  env | grep JAVA_HOME

Output will be something like this JAVA_HOME=/usr/lib/jvm/java-8-oracle. Here /usr/lib/jvm/java-8-oracle is location of JAVA_HOME.

Now, find the location of netbeans.conf. For this execute following command in terminal.

  sudo find / -name netbeans.conf

After this enter your password. Output will be something like /home/username/NetBeans/netbeans-8.2/etc/netbeans.conf. Exit from current running command by pressing Ctrl+C.

Copy the output from terminal using Ctrl+Shift+C and execute following command using the code you copied.

  sudo gedit /home/username/NetBeans/netbeans-8.2/etc/netbeans.conf

In your case replace /home/username/NetBeans/netbeans-8.2/etc/netbeans.conf with the code you just copied by using Ctrl+Shift+V.

Above command will open the code in gedit. Press Ctrl+F to use find in gedit and search for netbeans_jdkhome=". This holds the location of JAVA_HOME. Replace everything after netbeans_jdkhome=" with the location of JAVA_HOME found in step 1 above. Save and exit from the file.
Restart NetBeans and now try to make new project. If still it doesn't work, restart your system and try again.


Sure. In CCSM, select the Unity plugin, experimental tab.

Here is a video:

http://www.omgubuntu.co.uk/2011/02/unity-launcher-icon-size-to-be-resizable/


Scenario for using deja-dup for restoration

Backups archive files in case a disk or any other device that contains a file system fails.  This could be a media or hardware error on the disk, or in very rare circumstances, file system corruption caused by an OS problem.

Another common scenario is user error, such as the mistaken deletion of a precious directory or file using rm or possibly overwriting.

A final class of failures is the inadvertent loss or destruction of the machine.  You can use your backups to rebuild your computer with the same files as the original.  So keep your backup volumes in a different location.

Kernel panics are uncommon and are very unlikely to result in file system corruption or failure, although it can happen.


The only way to undo that would be a tedious by hand process for which you would need to know all the files original permissions. Save yourself the headache, Use a live USB/CD in conjunction with an external drive to backup your /home folder and do a clean fresh install.


Taskbar- and Menu-Icons missing after update to Hirsute Hippo (21.4)

Had the same problem today, found the solution here: https://etbe.coker.com.au/2020/12/04/kde-icons-disappearing-unstable/
TL;DR:
Run
sudo apt remove libqt5quick5-gles


Why is the update information outdated as of 2016-03-10 in Ubuntu 15.10?

Source of this solution:

sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list"

then update with

sudo apt-get update

and everything will be fine.

Long explanation: Google Chrome packages put automatically their repository file in /etc/apt/sources.list.d/.
Since the beginning of March the 32 bit (i386) repository has been disabled - see this question for more details.
Unfortunately they forgot to update the information on their source file!
The problem was then solved since version 49.0.2623.87 of Google Chrome, but for previous versions the above procedure is a workaround to this problem.


question to remap keys in Ubuntu terminal to Mac has not worked for me yet in Ubuntu VM under parallels

Never got an answer to my question that worked, but guess what? I updated Ubuntu and it stopped working. It said that no video controller was available or something to that effect. After trying to work on that problem, today I decided to just delete that VM from Parallels and reinstalled it and guess what? Now the keyboard on terminal in Ubuntu is the same as in the Mac! Wala!! fixed itself !!!
Thanks anyway for your help to those that responded. It's appreciated.


Toshiba Satellite ubuntu wants to use entire disk

When trying to install 12.04.2 but it wants to over write the entire disk . . . ditching Windows 8 completely.

The installer will only list possible methods of installing.

So ...

If your whole disc is 1 partition with Windows the installer can -only- erase your current installation. You can create new partitions with the installer but since any alteration is done on the Windows partition this means it will have to be deleted.
If you have unallocated space it will ask both if to erase Windows or if to use the unallocated space.

  Is the only way to dual boot is to use gparted to resize the disk?

Yes, if this in your only hard disc. You will have to create a new (unallocated) partition by making the Windows partition smaller.
No, you could also add another hard disc to your system and use that one.


Try this:

Open the terminalCtrl + Alt + T
Enter this: sudo apt-get remove comodo
If you get an error "Package not found" or something similar try this: sudo apt-get remove comodo* or sudo apt-get remove comodo:i386
Press y, and then enter


I had this problem on ubuntu 14.04. The letters would get scrambled or invisible almost everyday. In my case it was related to this bug. As you can see there's already a fix but not for utopic.
In my case I'm using ubuntu trusty but because of Stack Enablement my xserver drivers were the utopic version.

Solution

To fix it all you have to do is remove the utopic drivers and install the trusty ones.

First remove: sudo apt-get purge linux-generic-lts-utopic xserver-xorg-lts-utopic linux-headers-generic-lts-utopic linux-image-generic-lts-utopic libgl1-mesa-glx-lts-utopic libegl1-mesa-drivers-lts-utopic

Then reinstall: sudo apt-get install xserver-xorg xserver-xorg-input-synaptics libgl1-mesa-dri:i386 libgl1-mesa-glx:i386


Tomcat 9 and Eclipse Neon - Unknown version of Tomcat was specified

I was able to fix it by having the tomcat files in the Downloads directory instead of /usr/local.


How to move the window titlebar icons for maximize, minimize and close to the left in MATE?

You can use MATE Tweak in System > Preferences > Look and Feel

Under Windows, select Contemporary (Left)

Placement will change instantly (I also like the buttons on the left).


How do I use a ntfs drive as location for music, videos etc?

I would just change the default download location for your specific browser... I can't really offer much more detail because I do not know what browser you are using.


how do you expand the boot partition of a standard 14.04 install

That's because you're looking in the wrong direction. To see your disk partition information, use sudo fdisk -l /dev/sda.

Rather than risking fiddling with disk partitions (although I'll get to that), I suggest that you find out what is using 99% of /boot.

See the question and my answer at this post

And now, how to risk destroying your disk by "adjusting" partitions.

Step 1.

Make absolutely sure you have a backup that you can restore.

Step 2.

Download and burn to a USB key a "GParted Live" distribution. Google will help you find one.

Step 3.

Shutdown your system the official way, not by pulling the plug or the vulcan nerve pinch. This will let the system get the filesystems on the disk into stable, up-to-date states.

Step 4.

Boot from the GParted Live USB key

Step 5.

Tell GParted which disk you want to "fix". Once it's selected, GParted will show you a picture of the disk layout.

Step 6.

You can use GParted to resize partitions into adjacent I've had trouble before Free Space, or shrink them (don't go below the size the filesystem thinks is used) to create Free Space.

You can use Gparted to move partitions, but cannot change the order.

GParted will store your intended actions, and do them all at the end, once it gives you a final Go/No-Go choice.

Step 7.

As your penultimate action, tell GParted to run fsck on each and every partition you've touched.

Step 8.

If you are happy with what you have set up (and be sure to check and recheck - are you sure you can restore the backup?) tell Gparted to proceed.

Step 9.

Wait. Interrupting partition moves, GParted at work, etc leads straight to doorstop mode. (Your disk becomes more useful as a doorstop than connected to a computer).

Step 10.

Shut down GParted, remove the USB key and reboot.

Step 11.

YMMV, not responsible, Linux is a powerful tool, THIS IS RISKY!


Copying the iso directly to your usb drive will not work. You need to use a special program to make the usb drive bootable and then copy the files over. Take a look at this site. You'll find both programs and tutorials.


What sketching software exists that has minimal memory requirements?

Pencil

  It is for draw cartoons. But it is so easy to use.

  Also easy to install.(Around 1 Mb to download).

  Also can make animations from drawings.(There is a timeline). That
  gives a basic skill for Blender.

  Can save image in diffrent formats.

sudo apt-get install pencil

** If in Ubuntu 12.04 or older:

sudo apt-get install libming1

Then install from above link with Software Centre

To Save the created picture Go to File Menu and select Export Option. Then Select Image Sequence. If you Want to save it as a Catoon, select, Movie or Flash/swf Option.

Then, if it is a Picture, in Forth-comming Export as dialog, type file name as [Filename].png or .jpg


"No root file system is defined" when using kickstart

Kickstart uses /var/log/syslog for error reporting. You will see an error notice likely similar to this:

 ... kickseed: unsupported restriction 'ondisk' ...

As far as I know --ondisk sda was never supported by Ubuntu. Neither is partitioning more than 1 disc.

Remove it and it should work.

Kickstart is a Redhat utility that is also available on Ubuntu but our version lacks some features so it is best to keep an eye on /var/log/syslog.


Are the problems with installing ubuntu to an external hard drive fixed in ubuntu 13.04?

Just a theory here, but might be worth trying. Could you boot to your Ubuntu on the external HDD, run Boot-Repair and select Advanced Options. Assuming you don't have Boot-Repair installed:

Referenced from this source:

  (Open a terminal, and type (or copy-paste) the following command:

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

  Press Enter, then type the following command:

sudo apt-get install -y boot-repair && boot-repair

Once Boot-Repair is installed, you should be able to choose Advanced Options, then choose which OS to boot by default (OS X in your case). You would also want to choose "Place GRUB into: " and select the partition that you have Ubuntu installed into (your external drive).

Theoretically, this should keep GRUB from interfering from your OS X bootloader while giving you the option to boot Ubuntu when your External HDD is connected. I'm at work currently and therefore away from my Ubuntu Desktop, so I am unable to try this. Let me know how it goes! Good luck!


Why does systemd boot so much slower than upstart

Had the same problem. Boot time was approx. 100s. Also tried "systemd-analyze blame" and "systemd-analyze critical-chain", but that didn't really help. Switching to upstart dramatically decreased boot time.

Finally, I found out that the swap configured in /etc/fstab was invalid. The configured swap partition didn't exist any more. After I deleted the entry in /etc/fstab, the boot time with systemd went back to normal.

So, I recommend you to check all entries in /etc/fstab if they are valid.


How to install Windows 7 alongside ubuntu 14.04 lts

first try to get your data back, try if you can recover your lost partition with testdisk you can install it just by typing in the terminal

sudo apt-get install testdisk

it doesn't have a graphical interface so run in terminal by typing testdisk
and choose the appropriate hard drive and tell us the results


Let's say you've got (a,b,c).foo and (p,q,r).bar:

ls
a.foo  b.foo  c.foo  p.bar  q.bar  r.bar

You collect the foos and bars in array variables:

foos=(*.foo)
bars=(*.bar)

The size of an array is ${#foos[*]}, the indexes go from 0 to len-1. The first element is ${foos[0]} or ${bars[0]}.

for f in $(seq 0 $((${#foos[*]}-1)))
do
  fool=${foos[$f]};
  echo mv ${bars[$f]} ${fool%.foo%.bar}
  mv ${bars[$f]} ${fool/.foo/.bar}
done

mv p.bar a.bar
mv q.bar b.bar
mv r.bar c.bar

If you don't like the echo, remove it. The script assumes a matching number of foo and bar files. I'm not sure wether line 3 and 4 will always list the names in alphabetical order - it did in my tests but I don't have a written specification for that.

If the file contains an additional ".foo", like "a.foo-bork.foo" it will not work as intendet and it isn't sanitized against blanks in filenames or linebreakes and the like. But it might do what you want.


point wifi hotspot on ubuntu 19.04 does not correctly distribute the Internet

Your problem is with the MTU setting for your DSL connection.

There's a MTU setting in Ubuntu's network configuration, and a WAN MTU setting in your router.

For DSL, a common MTU setting is 1492. Just go ahead and try this value first and see if your web sites are now accessible.

To determine the correct setting, start with all MTU settings = 1500 and VPN = off. (VPN requires different testing).

In terminal:

ping [-c count] [-M do] [-s packet_size] [host]

The options used are:

c count: number of times to ping
M hint: Select Path MTU Discovery strategy.  may be either do (prohibit fragmentation, even local one), want (do PMTU discovery, fragment locally when packet size is large), or dont (do not set DF flag).
s packet_size: Specifies the number of data bytes to be sent.

You should always start at 1472 and work your way down by 10 each time. Once you get a reply, go up by 1 until you get a fragmented packet. Take that value (last good value) and add 28 to the value to account for the various TCP/IP headers. Eg. let's say that 1452 was the proper packet size (where you first got an ICMP reply to your ping). The actual MTU size would be 1480, which is the optimum for the network we're working with.

ping -c 4 -M do -s 1472 8.8.8.8 # this will probably show fragmentation

ping -c 4 -M do -s 1462 8.8.8.8 # may show fragmentation

ping -c 4 -M do -s 1452 8.8.8.8 # no fragmentation?

ping -c 4 -M do -s 1453 8.8.8.8 # still no fragmentation?

reference: How to determine the proper MTU size with ICMP pings


xbox360 gamepad left analog only moves up/down on fps games

Run jstest-gtk, wiggle the sticks around and ensure that they all report to the computer properly (ignore the configuration in jstest-gtk, no modern game uses that)
Run Steam in Big Picture and configure your controller there, that should fix SDL2 based games, non-Steam games launched through Steam should work as well

For games outside of Steam you have to twiddle with the SDL_GAMECONTROLLERCONFIG variable, but I don't think there is a good tool for that yet, Steam handles that internally.

Also look around the game if you can configure anything in the game themselves.


Proprietary nvidia driver gives black screen after logon, but works when first connecting to an external VGA display

Changing a Display Manager is worth of try:

sudo apt install gdm3
sudo dpkg-reconfigure gdm3

Recently I've somehow broken lightdm, so it stopped working even after purge/install. But with gdm3 there's no issue. There're also different alternatives like lxdm, kdm, xdm you could try.


by default, the boot logo for Ubuntu 18.04 uses /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.png from the script /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.script

some of the content of this script is

    bits_per_pixel = Window.GetBitsPerPixel ();
if (bits_per_pixel == 4) {
    logo_filename = "ubuntu-logo16.png";
    progress_dot_off_filename = "progress-dot-off16.png";
    progress_dot_on_filename = "progress-dot-on16.png";
    password_field_filename = "password-field16.png";
    question_field_filename = "password-field16.png";
} else {
    logo_filename = "ubuntu-logo.png";
    progress_dot_off_filename = "progress-dot-off.png";
    progress_dot_on_filename = "progress-dot-on.png";
    password_field_filename = "password-field.png";
    question_field_filename = "password-field.png";

to change the boot logo by understanding above content of the script..
we need to replace ubuntu-logo16.png & ubuntu-logo.png files with our custome ones with same names..

you can easily do this with command line..

Example Command Line when my Custom Image is in ~/Downloads with boot.png name

cd /usr/share/plymouth/themes/ubuntu-logo
sudo mv ubuntu-logo.png ubuntu-logo.png.bak
sudo mv ubuntu-logo16.png ubuntu-logo16.png.bak
cd ~/Downloads
sudo cp boot.png /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.png
sudo cp boot.png /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo16.png

Recommendations for custom boot logo image:
image format: .png
image size: around 217px in width


World of Warcraft under primus/crossover getting Direct3D9 is not available without opengl

First of all, it's possible that your drivers aren't completely installed.
Try running this if you use Nvidia cards ( 32bit, as wine uses 32bit libraries ):

sudo apt-get install nvidia-glx

And this one if you use AMD/ATI cards:

sudo apt-get install fglrx-glx

You might want to re-install / update your drivers, too. You can follow one of these guides:

Nvidia driver doesn't work in 12.10

Nvidia drivers on Ubuntu 12.10

Also try running: LD_LIBRARY_PATH=/usr/lib32/nvidia-current ~/.wine/path/to/your/game

If none of these does work, try running game with -dx9single.

Hope it helps.


I also ran into this issue with the openstack-installer, but have a slightly newer version:

dpkg -l|grep openstack

ii  openstack                            0.99.27-0~1501~stable1~ubuntu15.10.1 all          Ubuntu Openstack Installer

It turns out that the version of urwid that is already installed is 1.2.1, and that does not have AsyncioEventLoop. The easiest solution is to upgrade urwid, currently at 1.3.1:

sudo pip3 install urwid --upgrade

You may need to install python3-pip to run the above command:

sudo apt-get install python3-pip


Alsa is just not working right or I dont know

this seems to be a known issue with portaudio where ALSA (Linux's low-level sound API) returns an error in an unexpected place

this seems to be a known issue (e.g. see here) but the authors seem to have issues with the code, and it never got added to the package

I've just stumbled on the same issue and am trying again with code that will hopefully address their issues with the previous patches

not sure if/when it would show up in Ubuntu though


Problem of sound with HD channels using Kaffeine (media player for TV TNT tuner)

I found a solution from this French Ubuntu Forum.

The solution is to install the latest version of Kaffeine V1.3

This version is not yet available in Ubuntu Software Centre  so we need to install it from Git repository

1) Install some prerequisite packages:

sudo apt-get install build-essential
sudo apt-get install git
sudo apt-get install cmake
sudo apt-get install kdelibs4-dev
sudo apt-get install kdelibs5-dev
sudo apt-get install libxss-dev
sudo apt-get install libx11-dev
sudo apt-get install qt5-default
sudo apt-get install libvlc-dev

2) Get sources of Kaffeine V1.3

git clone git://anongit.kde.org/kaffeine
cd kaffeine
gedit CMakeLists.txt

3) In row 12 of file CMakeLists.txt, add this add_definitions(-fPIC)

...
11 : add_definitions(${KDE4_DEFINITIONS})
12 : add_definitions(-fPIC)
13 : if(STRICT_BUILD)
...

4) now compile and install

cmake . -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
make
sudo make install

=> Now you should have Kaffeine V1.3 and no more problem with your HD channels.

5) And to avoid that you get back to Kaffeine V1.2 every time you do an update , you can hold Kaffeine package like this (from this answer)

sudo -i
echo kaffeine hold | dpkg --set-selections


Not able to login to ec2 instance from my ubuntu14.04 terminal

Please check permission of .pem file is it 644 then its ok

otherwise

cut the .ssh folder from home user directory for temporary and then try again

still issue then try with sudo user


Deepin-terminal not showing up in x-terminal-emulator list

For me, the following worked

https://github.com/linuxdeepin/deepin-terminal/issues/186#issuecomment-517919007

# Register deepin terminal
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/deepin-terminal 50

# Select your terminal
sudo update-alternatives --config x-terminal-emulator

No reboot needed.


Please try this command:

echo 2500 | sudo tee /sys/class/backlight/intel_backlight/brightness

More info, please look in this thread How to change LCD brightness from command line (or via script)?


Is it possible to show some kind of image when opening gnome-terminal?

I am a bit confused about what you exactly want to do...but one solution is to add the commands inside .bashrc
This shell script(bashrc) is executed everytime you open your terminal(ctrl + alt + T)

open the terminal and enter the command

emacs .bashrc

Emacs will open the bashrc file and then you can add the new command at the end of bashrc file(bashrc is stored in your home dirctory and it is hidden by default)

for example

eog /path/for/imagefile

this will open image everytime you open your terminal..
Before making any changes to bashrc just make sure that you take the backup so that even if you change or edit any other things you will be able to roll back your changes


I solved the problem by using antimicro. This package maps joystick buttons to keyboard keys which I then use to control visualboy.


How long should it take to load from LiveUSB

When I loaded Ubuntu 14.04 from USB, it took me about an fifty minutes for the installer to finally tell me that it could not proceed. I tried twice from two different USBs with two different 14.04 downloads.

I figured that I wasn't able to get a non-corrupted version for whatever reason so instead I downloaded Ubuntu 13.10 from http://releases.ubuntu.com/

Then after I fully installed that, Ubuntu prompted me to update to 14.04 which installed in less than 20 minutes.


Simple answer: you currently can't.

You can't use any program as screensaver but you need program written directly for use as xscreensaver module. You can see documentation on http://www.dis.uniroma1.it/~liberato/screensaver/

Currently there are only Mac OS X, KDE and Windows variants of asciiquarium screensaver but none has been probably written for xscreensaver.

Of course, you have option to switch from xscreensaver to KDE screensaver if you don't mind installing many required libraries.


Unable to mount D-drive of windows (Fast boot disabled in Windows)

The problem is with the BitLocker being enabled for the disk in discussion. Disable the BitLocker encryption by going to:
Control Panel > System & Security > BitLocker Drive Encryption > Select - Turn Off BitLocker


How do I hide a mouse pointer in GNOME 3?

Still happy to accept a better answer!
What happens to work for my current issue - which is Unturned (free game on Steam):
Create a file named blank containing cursor and mask data (white space matters):
#define blank_width 1
#define blank_height 1
#define blank_x_hot 0
#define blank_y_hot 0
static unsigned char blank_bits[] = {
    0x00 };

Load it with:
xsetroot -cursor blank blank

When finished, you can load the default cursor with:
xsetroot -cursor_name left_ptr


Download Ubuntu Live CD for a low RAM PC

AFAIK, there is no officially released live image small as CD size back few years from now.

You could choose to go with other derivatives of Ubuntu or Debian, or even Debian itself.

Few options:

Ubuntu Mini Remix <300MB
List of Linux/BSD live images with estimated size to help choose from

livecdlist.com/media/cd/
DistroWatch advanced search


I don't know whether my answer satisfies you completely! But you can give a try to this option. You'll get a lot of configuration to set your own Shortcut Key in order to make your task easier.

Follow these steps:

Open Keyboard from System Settings (Search in dash)
Chose Shortcuts tab
Go to Navigation you will get a bunch of options to set.
You should also try other options from the list. I am attaching a screenshot give a loot at that! So start digging it..

Hope it helps you somewhat!! Reply for further assistance.


Where can I get a list of .deb packages on the alternate CD?

.deb packages are basically the installable Applications packages ( similar to Windows .exe ) packed by and for Ubuntu.

The Ubuntu Alternate Cd version avails advanced mode of installation suited for experienced and professional users to control every part of Installation.

For viewing the .deb packages and the application related to them , you can visit Packages.Ubuntu.com.

For installing through Alternate CD , you can view this Illustrated guide

For installing other packages that you thought was missing , you can search for them in Ubuntu software center available in the Dash menu or by pressing super+A keys , or through Ubuntu Applications Web page.


How does Ubuntu Cloud Guest and Amazon web services work?

Imagine that you need to set up a server to work as a Web Site hosting server, or email server, or some specific server, for example, you have a service like Dropbox(I mean you are the guy that owns Dropbox for example) and you want to set the server for it. In case that there are a lot of users you need to get a high speed internet to it, than take care of hardware not to fail so you don't have downtimes, hard disk space, software updates, all the technical stuff you need to do in order to keep a server...

So what Amazon EC2, Windows Azure... do: they take care of all that, you don't even know what happens behind there or you don't even know what hardware or software is sitting there, you never get to touch the server, you just put your servers and applications on it and they take care of the hardware, bandwidth... They set up the servers for you and take care of it(backups, additional hardware in case that something fails...)

Here is a link from Microsoft site where they explain uses cases: http://www.windowsazure.com/en-us/home/scenarios/saas/

I do want to point out that almost no serious site is using Windows Azure :)
The only more serious site that is using it is a Government site in one country...

Edit: P.S just a few days ago (29 February to 1 March) all Windows Azure servers failed and had a 9-12+ hour downtime because of a Microsoft miscalculation in the leap year...


How to see remote SSH connections on my server?

ps -Af | grep sshd: | grep @pts

will show all the ssh processes for users that are logged in or making an attempt to log in.

How it works:

ps -Af list all the running processes
grep sshd: filters all but those lines with 'sshd:' which is the child process of the ssh daemon.  Each connection gets its own child process.
grep @pts filters all but those lines with '@pts' which is an indicator that a process has been given a terminal shell


How to call just a function from text script?

If I were you, I'd put both the functions and the aliases into my ~/.bash_aliases (See Aliases: difference between .bash_rc, .bash_aliases and /usr/local/bin).

Since you already have the aliases defined in your current session, you could just source the text file to later call the alias commands:

user@test-pc:~$ . <PATH_TO_YOUR_TEXT_COMMANDS>/my_commands.txt
user@test-pc:~$ upug

Alternatively you can load the file from your ~/.bashrc as follow:

if [ -f <PATH_TO_YOUR_TEXT_COMMANDS>/my_commands.txt ]; then
    . <PATH_TO_YOUR_TEXT_COMMANDS>/my_commands.txt
fi


$ apt-cache search MPI | grep -w MPI will list (on MY system) 47 MPI related packages.

$ apt-cache search MPI | grep -w MPI| awk '{print $1}' | xargs dpkg -l 2>/dev/null will show you which ones you have installed on your system.

You can achieve "(uninstall and install mpi)" by feeding the package names to sudo apt install --reinstall.

However, in the Ubuntu world, "uninstall and reinstall" never fixes the problem. Never.

If you've messed up the configuration of a package, you can use dpkg-reconfigure  to reconfigure an already installed package. Read man dpkg-reconfigure.

If it's some other problem, read https://askubuntu.com/help/how-to-ask


Administrators can change passwords of other administrators

The important property of administrators on Ubuntu is that they can perform whatever actions they choose, as root, using sudo and polkit. This is necessary, in order for them to have the power to fully administer the system. And this is already how an administrator changes the password of another user.

Considerable restrictions would have to be put in place in order to stop this effectively, which would result in the administrator not effectively being an administrator anymore. Even if you painstakingly configured the system with numerous exceptions (perhaps via AppArmor or SELinux) to keep them from doing this, they could pretty easily regain this power if they can:

Run some command as root that itself lets them inject and run an arbitrary command.
Edit arbitrary files on the system.
Edit or create a configuration file that controls who can run commands as root and what commands they can run (such as /etc/sudoers, or files in /etc/sudoers.d), even if they are not permitted to edit all root-owned files.
Edit a configuration file involved in automatically running commands as root, such as /etc/crontab. Or, similarly, schedule at jobs for root.
Install arbitrary software. They could make a package that does any of the above things automatically as root during the configuration step of its installation. Or they could make a package that lets them do it when they run the software it installs (for example, it could install setuid executables owned by root written to break the restrictions imposed).
And those are just examples. This is nowhere near an exhaustive list.

I suspect that what you really want may be one of the following:

To create a limited user with some additional powers, but not the full power of an administrator, and not the power to run arbitrary commands as root or edit most systemwide configuration files.

This would start with the simple step laid out in ByteBOT's answer--the user needs not to be an administrator, for the limitations to effectively be imposed.

Whether or not this is practical depends on the specific powers and limitations you want to them to have. (It is not practical if you want them to be able to do everything except reset administrators' passwords, see above.) If the powers you want to give them are well defined and not too expansive, it may well be feasible.
To stop fellow administrators, or perhaps personnel who are officially supposed to do as you say, from behaving in a way you consider wrong or harmful. If this is the situation, that's not really a technical problem. Attempts to solve this sort of problem through technical means usually have many more disadvantages than advantages.

One of the reasons for this is that it creates a technical contest to resolve (read: perpetually fail to meaningfully resolve) a disagreement that should instead be solved by some combination of discussion, negotiation, explanation of the situation, or redefinition/dissolution of the relationship between personnel. Probably (hopefully) you do not really want to officialize petty squabbling and territorial infighting between members of your team.
To create an automated mechanism that reminds administrators of this system that they are not generally supposed to change the passwords of other administrators.

If that's what you want, and you understand it will not really keep an administrator who wishes to reset any password from doing so, then I believe it is doable.

If you are trying to solve problem 1 or problem 3, you might consider posting a new question about it, with details.


Error in LibreOffice Base Access2Base Module Application

From After upgrading Libreoffice to 5.3.1.2, previous working extensions results in error:

  The bug is already reported, see tdf#106529.

So change to a different version of LibreOffice.

Eventually, people should update their macros to accomodate the new change.  You could use the contact form at http://www.access2base.com/access2base.html.


Why do I get "connection refused" errors connecting to a server via SSH?

It sounds like a firewall issue to me. Is this machine behind a physical firewall on a different network or on the same LAN? If it is on a different network, check both the gateway firewall and the host firewall (iptables) and make sure that port 22 is allowed.

To do this, follow these instructions:

Login as the root user.
Open /etc/sysconfig/iptables file, enter:

# vi /etc/sysconfig/iptables

Find line that read as follows:

COMMIT

To open port 22 (ssh), enter (before COMMIT line):

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

Save and close the file. Restart the firewall:

# /etc/init.d/iptables restart

Next check to make sure the service is listening.
Try issuing the command:

netstat -vatn | grep :22 and see if port 22 is listening.

You could also try:

netstat -vatn | grep ssh

This will take care of the host-based firewall, but if there is a network-based firewall between you and the machine you are trying to remote into then you will have to consult that specific device's instructions for allowing connections to port 22 into the network.


How to use 22 pixel size icons for toolbars in Ubuntu 14.04

The solution is to use the 22 pixel FS icons as 24 pixel icons.  This is done by creating links to the 22 pixel icons and updating the FS Icon theme configuration files.

1) Execute the following command if you need to be root to make changes to your FS Icons installation...

$ sudo -i

2) Change to the location where you've installed the FS Icons (ex. /usr/share/icons/)...

$ cd <location where fs icons are installed>

3) For 24 px size icons, link to the existing 22 px size icons...

$ for file in `ls ./ | grep fs-icons-ubuntu`; do ln -s 22x22 ./$file/24x24; done

4) In index.theme, add the 24 px size icons to the available Desktop, Toolbar, MainToolbar, Small, Panel, and Dialog sizes...

$ sed -i "s|22,|22,24,|g" ./fs-icons-ubuntu*/index.theme

5) In index.theme, add the 24 px size icon directories...

$ sed -i "s|22x22/status,|22x22/status,24x24/actions,24x24/animations,24x24/apps,24x24/categories,24x24/devices,24x24/emblems,24x24/mimetypes,24x24/places,24x24/status,|g" ./fs-icons-ubuntu*/index.theme

6) In index.theme, add 24 px size icon metadata for actions, animations, apps, categories, devices, emblems, mimetypes, places, status...

$ sed -i "s|\[32x32/actions\]|\n[24x24/actions]\nSize=24\nContext=Actions\nType=Threshold\n\n[24x24/animations]\nSize=24\nContext=Animations\nType=Threshold\n\n[24x24/apps]\nSize=24\nContext=Applications\nType=Threshold\n\n[24x24/categories]\nSize=24\nContext=Categories\nType=Threshold\n\n[24x24/devices]\nSize=24\nContext=Devices\nType=Threshold\n\n[24x24/emblems]\nSize=24\nContext=Emblems\nType=Threshold\n\n[24x24/mimetypes]\nSize=24\nContext=MimeTypes\nType=Threshold\n\n[24x24/places]\nSize=24\nContext=Places\nType=Threshold\n\n[24x24/status]\nSize=24\nContext=Status\nType=Threshold\n\n\n\n[32x32/actions]|g" ./fs-icons-ubuntu*/index.theme

7) Update icon caches. (You may ignore "generated cache was invalid" warnings).

$ for file in `ls ./ | grep fs-icons-ubuntu`; do echo "Updating cache for $file..."; gtk-update-icon-cache -f ./$file; done

8) Execute the following only if you did "sudo -i" in step 1 above.

$ exit

Here is what the the gedit window looks like with the corrected icons.  Notice that the icons are sharp and that only monochromatic icons are used in the toolbar.

Finally, here is the Ubuntu 14.04 Desktop using the FS Icons (specifically the "fs-icons-ubuntu-mono-dark" icons).


Ubuntu 18.04.4 LTS 64 bit on Raspberry Pi 4 + RealVNC server, how?

ARM32 is optional on ARM64. You can enable it through:
dpkg --add-architecture armhf

Afterwards, you can install the .deb file.
Be sure to run afterwards
sudo apt-get update;
sudo apt-get upgrade;
sudo apt --fix-broken install;

if needed. (Was the case for me)


Run sudo apt-get update, then sudo apt-get install wine.


Why cant I connect to 5GHz with my b/g/n WiFi Card?

The Realtek RTL8188CE WLAN adapter is designed to connect to a IEEE 802.11b/g/n communication protocol. This protocol is available for both the 2.4, and the 5.0 GHz frequency band. However according to the hardware specifications this adapter like many other "802.11n" adapters only supports the 2.4 GHz band:

  Complete 802.11n solution for 2.4GHz band Realtek

To be able to connect to signals in the 5.0 GHz band you need to have an adapter supporting this. These usually are named as "dual-band" or similar.


How do I exclude a directory by name using find?

Use ! in a find command to negate (invert) the option following after. In your case:

find . ! -iname "002abc*"

and optionally, only matching folders:

find . ! -iname "002abc*" -type d

will list all folders except the ones named matching the pattern 002abc*.

The ! can be problematic in shell scripting sometimes, so as Flimm pointed out, the -not parameter is a very useful synonym to it.


What folder structures are changed when doing a version upgrade

For modified configuration files in /etc, the installer will ask whether to keep to original or override it.

As for the other folders, an upgrade basically consists of upgrading a lot of packages. File contained by packages are upgraded or removed if they are no longer required.

Files that are created by you and not contained by a package are generally untouched. For example, a common place to store apache 'website' files is in /var/www. These are not removed in an upgrade as far as I know.

Nevertheless, I would recommend to backup important files before an upgrade


You can update applications installed trough Discover via the GUI in the updates menu of Discover or with apt using these commands
sudo apt-get update
sudo apt-get upgrade

the first will only update what versions are available and the second will then download and apply those updates to all your applications.
However the version available in the official repos might not be the latest version. To get this version you should look on the official websites off each app (or their github page). There you might find instructions on how to add their repo, which will then let you update from them through Discover or apt-get
For example Stacer has their own repo listed on their github page under PPA Repository (for ubuntu)


Replace windows with Ubuntu: What should I check in Ubuntu live

Is there a check list that could test in order to minimize the chances of the ubuntu installation going wrong?

Yes, there is.

Well 1st a comment... basically if the live dvd works the installation will tend to work too. Main concern should be your video card and your internet connection. If needed for your system check that wireless works. If your display acts up while installing using it will become problematic and fixing a problem nearly impossible for a new user. If you depend on wireless it will be hard to get something fixed. ALL other issues (if there are any that is) can be solved using a browser and searching for it.

Open up dash and search for "test". If will start the test program:

If has many many tests from suspend, usb, mediacard checks:

BUT this best done after installation; doing this during a live session tends to take long. Very long. If unsure about installation start out with a dual-boot setup so you can always fall back to Windows. The installation tends to go smooth if the ISO was burned correctly (and that is what you tested while booting the livd dvd).


I have Xubuntu 14.04. Can't delete a "phantom" file from my home folder

Yeah, if it starts with . it is a hidden file. Lots of system configuartion files start with . so that they don't clog up your home area with stuff you normally don't care about.

Press Ctrl+H to see the hidden files, and press it again to hide them.

To view it from the command line, run the command ls -a, that will show all hidden files.


Boot menu doesn't show up after installing Windows 7

Always install Ubuntu after installing windows as Windows tends to overwrite the Bootloader thus preventing you from booting into ubuntu. However you can solve this by following the instructions given here.

The link describes ways to recover your ubuntu by

By installing EasyBCD on windows which allows to boot into multiple operating systems, including Ubuntu Linux.
Recovery Using the Ubuntu Alternate/Install CD
Recovery Using the Unofficial "Super Grub Disk"

This is an official link from the ubuntu wiki...so should be trustworthy and reliable.

Hope this helps!


pyarrow problem: No rule to make target '/usr/lib/x86_64-linux-gnu/libarrow_python.so'

For your information Python Arrow is packaged in all modern Ubuntu versions.

You can install it for Python 2 with

sudo apt-get install python-arrow

and/or for Python 3 with

sudo apt-get install python3-arrow


Why do I have the gnome-3-34-1804 snap package installed on Ubuntu 20.04 (after a clean install of 20.04)?

The gnome-3-34-1804 snap description is at snap info gnome-3-34-1804:

  description: |   This snap includes a GNOME 3.28 stack (the base
  libraries and desktop   integration components) and shares it through
  the content interface.

This means that your other gnome-based snaps connect to this snap in order to talk to Gnome.

You can test this by removing the snap. Suddenly your other gnome-based snaps won't work. Restore their function by re-installing the snap.


How do I recursively get all directories that contain a txt file with the same name as the containing directory in Bash?

Given

$ tree somepath/
somepath/
├── Dir1
│   ├── Sub1
│   │   └── Sub1.jpg
│   └── Sub2
│       ├── Sub2.jpg
│       ├── Sub2.png
│       └── Sub2.txt
├── Dir2
│   ├── Sub1
│   │   ├── Sub1.doc
│   │   └── Sub1.txt
│   └── Sub2
│       ├── SomeTxt.txt
│       ├── Sub2.jpg
│       └── Sub2.png
├── Dir3
│   └── Dir3.txt
└── Dir4
    ├── Some.txt
    └── Sub1
        └── Dir4.txt

9 directories, 12 files

then, with the shell's globstar option enabled (shopt -s globstar)

for d in somepath/**/; do
    d="${d%/}"
    [[ -f "${d}/${d##*/}.txt" ]] && printf "%s\n" "$d"
done
somepath/Dir1/Sub2
somepath/Dir2/Sub1
somepath/Dir3

If you want to store the results in an array for later processing, you can do that using the shell's built-in mapfile (or its synonym readarray) e.g.

mapfile -t TXT_DIRS < <(
  for d in somepath/**/; do
    d="${d%/}"
    [[ -f "${d}/${d##*/}.txt" ]] && printf "%s\n" "$d"
  done
)

NOTE: it would be better practice to null-terminate the list using one of the methods discussed in bash: whitespace-safe procedural use of find into select

You can then iterate over the array like so

for d in "${TXT_DIRS[@]}"; do
    echo "$d"
done
somepath/Dir1/Sub2
somepath/Dir2/Sub1
somepath/Dir3

Alternatively, you could avoid storing the results at all and simply process each directory as you find it i.e.

for d in somepath/**/; do
    d="${d%/}"
    [[ -f "${d}/${d##*/}.txt" ]] && echo "Doing something with $d"
done
Doing something with somepath/Dir1/Sub2
Doing something with somepath/Dir2/Sub1
Doing something with somepath/Dir3


SSH Permission denied (using right password)

Instead of using the hostname of the server, try using the ip-adres.
I ran into the same problem when setting up my server and this seemed to resolve the problem.

ssh [username]@[host_ip-adres]

If you want to use the hostname you might need to set up a dns-server.
but you can do without.


Well it seems that the preinstalled MySQL conflicted with the MySQL from xampp. Be removing the preinstalled MySQL everything works just fine.


How to run a script at *beginning* of shutdown process?

This solution is in two parts. First part is to create a script, and second part is creating a systemd service file to run that script.

Part-1: Create a script: autovm.sh

Note: you can find virtual machine's UUID by: VBoxManage list vms

sudo nano /bin/autovm.sh

#!/bin/bash

VMUSER="username"
VMNAME="21b3afd8-8f71-4c31-9853-ce9aa2eb58fb"

case "$1" in
    start)
    echo "===Starting VirtualBox VM==="
    sudo -H -u $VMUSER VBoxManage startvm "$VMNAME" --type headless
    ;;
    stop)
    echo "===Shutting down Virtualbox VM==="
    sudo -H -u $VMUSER VBoxManage controlvm "$VMNAME" acpipowerbutton
    sleep 20
    ;;
    *)
    echo "Usage: /bin/autovm.sh {start|stop}"
    exit 1
    ;;
esac

exit 0

Now make the autovm.sh script executable and place it to: /bin/

Part-2: Create autovm.service file in /etc/systemd/system/ (Do NOT make this file executable)

sudo nano /etc/systemd/system/autovm.service

[Unit]
Description=Autostart VM

[Service]
Type=oneshot
ExecStartPre=/bin/sleep 20
ExecStart=/bin/autovm.sh start
ExecStop=/bin/autovm.sh stop
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Now enable the service by:

sudo systemctl enable autovm.service


Machines more suitable to long term support releases will generally be business machines (such as web-servers in datacentre's or servers in a workplace).  These machines it would be generally disruptive to be upgrading the operating system every 6 months as opposed to every 3 years!  When it is essential to keep the downtime to a minimum, time is money!

Generally a long term support distribution will have constant security fixes and the like to keep the system stable, but no MAJOR application changes.  A lot of the time for a fileserver sitting in an office with no screen won't benefit from that new version of firefox or that extra wallpaper.

In your situation, if you want the latest software, stick to recent ubuntu releases.  The fact that you're not a fan of unity doesn't mean you have to use an older version of ubuntu as you are fully aware.  When you first get to the login screen after installation, change the drop box at the bottom of the screen to ubuntu classic.  This will ensure you've got the latest software, security fixes, efficiency fixes, and a few extra toys to play with that have come out of that extra year's worth of development!

I do find it  unimaginably odd that even though you know about that feature you'd rather use an LTS verison.  LTS suuport lasts for 3 years on a desktop and 5 years on a server, wheras it's normally 18 months for standard release.  This means that both 11.04 will "expire" after ubuntu 12.10 and ubuntu 10.04 LTS will "expire" after ubuntu 13.04 respectively.

So for you, an extra 6 months worth of life on the more "stable" operating system?
Or cutting edge?

Enjoy your Ubuntu!

EDIT:
Here's a link for anyone else reading this showing you how to switch to classic desktop after installation:
Nixie Pixel - Change back to the Classic Gnome look


How can I check if I have Thunderbolt x4 or x2?

Type this in a terminal sudo dmidecode | grep PCI it will tell you which Pci-e slots you have.

Edit: This should work in an indirect way. Type sudo lspci -vv | grep -E 'PCI bridge|LnkCap' in a terminal it should show you something like this:

00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40) (prog-if 01 [Subtractive decode])
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0) (prog-if 00 [Normal decode])
        LnkCap: Port #247, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us
    Capabilities: [b0] Subsystem: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 1) (prog-if 00 [Normal decode])
        LnkCap: Port #1, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us
    Capabilities: [b0] Subsystem: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 1)
        LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s unlimited, L1 unlimited

Now just check what version corresponds to the specs you have here and you should be good to go.


How can I make Ubuntu look like Debian 6.0 "Squeeze"?

That screenshot is gnome 2 on Debian and although you can make Ubuntu look somewhat like gnome 2, you can not run gnome 2 on Ubuntu.

You might be interested in an alternate window manager such as xubuntu or lubuntu (or Fluxbox)

Xubuntu

Lubuntu


To launch it from dash you have to install gksu.

        sudo apt-get install gksu

Now you can launch PinguyBuilder from dash.


Cannot change icon and UI themes after disabling GTK+ on Ubuntu 17.10

Problem solved...
I just reinstall gnome tool and refresh-d sesion
- nothing spcial :D


"rfkill list all" shows nothing in command line

It isn't meant to show anything if there is nothing to show. This command doesn't give a message like no wireless devices, which would be an improvement.

From the man page:

list [type]
             List the current state of all available rfkill-using devices, or
              just all of the given type.

So if there is nothing to list, then it won't show anything.

My output of rfkill list is the same as yours - nothing.


If I add a user with no home directory, do they have a password?

There's no harm in simply trying it out. On my system (16.04), this resulted in a user with locked password (*) and no valid login shell (/bin/false), as can be seen from its /etc/passwd and /etc/shadow entry:

# grep mightydog /etc/passwd
mightydog:x:128:138::/home/mightydog:/bin/false

# grep mightydog /etc/shadow
mightydog:*:17610:0:99999:7:::

So no, it does not have a password, and it also can not log in by any other means (like SSH keys, or using sudo -u) due to the /bin/false shell.


How to start a fail-safe graphics session? (with mouse & web browser)

Start your computer,
Wait until the BIOS has finished loading, or has almost finished.
(During this time you will probably see a logo of your computer manufacturer.)

Quickly press and hold the Shift key (or Escape key on some computers), which will bring up the GNU GRUB menu.
  (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.)

Use the ← ↑ → ↓ keys to navigate/highlight the entry with Recovery mode or advanced options  (usually the second one)  press Enter to continue booting into the Recovery Menu.
from the recovery menu Select Resume normal boot & hit Enter twice.

recovery mode wiki

now your'll be using the fail safe graphics drivers in a recovery session

 use can use a Web browser & go to askubuntu.com for help fixing drivers !


How much space does Ubuntu take up after it's already installed?

According to installation procedure 4.5 GB approximately for Desktop Edition . It varies for Server edition and net-install .

Please refer this System Requirements for more info.

Note : On a fresh install of Ubuntu 12.04 - 64 bits without any Graphic or Wifi drivers took approximately 3~ GB of File system space.  And i guess 4.5 GB is recommended for Updating packages , Language packs , etc  and best practical reason is for Ease and  Smooth Usage of System avoiding Low memory kind of situations.


Jetson TX1 will not boot, how do I completely reinstall Ubuntu on it?

I've experienced the same problem.

Flashing again from JetPack didn't work, but then I noticed something weird during the flashing process (on the Component Manager page, the actions towards "Target - Jetson TX1" are all skipped automatically). There's no error messages so I assumed the flashing completed, however it's not.

I still don't know why this happened because I haven't done anything on my host computer, but after uninstalling JetPack and reinstalling it the process became normal. Anyway, make sure your flashing process is finished.

This might not be very related to the question but remember to run chmod +x JetPack-${VERSION}.run to give it exec permission before running JetPack. I always forget this lol.


can't connect to wireless network on hp mini after installing ubuntu 12.10

I have this wireless problem too in HP mini 110 1013tu, install additional driver for broadcom wireless device fix the problem.


First you need to make the file executable using cmd chmod +x filename.py as your say it is a python file.

After press start button or open Ubuntu dash and search StartUp

Click on Add

You will able to see as above now enter name of command and provide path of file, if you want can add some comment.
now click on add, your program will run on startup


Lost OS(windows 10) and partitions(which had all my files) while installing ubuntu 14.10

When you install Ubuntu, you have the option to erase the whole disk and install Ubuntu, or you could make the partition table yourself. Since you are a beginner Linux user, you probally erased the whole disk.

To answer your question about retrieving files from your previous OS. Yes, it is possible to extract files. (But you can't restore your Windows OS.) There are numerous programs on the internet to retrieve deleted files. When you delete a file, it isn't entirely lost. It still resides on your hard disk. What you should do is stop using the hard drive and plug it as a second hard drive in another PC. Then download software to try to retrieve those files. (Search google "retrieve deleted files")

Good luck!


you can install vlc-media player directly from Ubuntu Software center.

open your unity dash and type as Software-center then in the search box type as vlc and thats it you will get it listed and by clicking install you can install it fine with out any problems.


How to install sbt in its latest version in Ubuntu 14.04?

You need to do this

echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
sudo apt-get update
sudo apt-get install sbt

to install sbt


Created a user with user add and it's not listed in users list

Whatever you want to do the command users  is not what you need.

USERS(1)                         User Commands                        USERS(1)

NAME
       users  -  print the user names of users currently logged in to the cur‐
       rent host

It will list users currently logged in and not the users available in that system. root root means you are logged in with root twice.

Place to check on users:

ls /home/  will list all the names of users created with useradd -m  or adduser
more /etc/passwd | grep multicraft  will list the lines that have multicraft in them.

I have a strong feeling you are doing this wrong.  I would assume it uses a database backend and you need a user on that backend to be able to connect to it. Probably that needs to be done as part of the installation when you reach the database setup part of the installation or when you 1st log into the multicraft control panel and not as a local user on your system?

Can you please edit into the question the installation instructions of the download of this multicraft server you used?

From the links added to the question I seem to be correct:

  Using SQLite If you're using an SQLite database (the default) the user
  running the control panel needs to have access to it. On a default
  Debian setup this user will usually be "www-data". In order to create
  files with the correct permissions the daemon has to be run as root
  (it will drop the privileges as soon as the files have been created
  and the permissions set). Alternatively the daemon can be run under
  the user of the control panel. This implies that everything created by
  the daemon will be owned by the user running the control panel (e.g.
  "www-data").

  Using MySQL When using MySQL the user of the control panel doesn't
  need to access any files of the daemon directly and can even be
  installed on a different machine. The database is configured in
  "multicraft.conf" and there are example lines for MySQL.

  Please see How To's for more advanced configurations.

The How To links to this

  Grant Access to Daemon MySQL Users The following queries are run
  directly in MySQL. You can use any tool to access MySQL, from the
  command line it would be:

mysql -uroot -p

  Replace "root" with the name of a privileged MySQL user.

  It's recommended to create a new MySQL user for each daemon. For
  example if your daemon is running on 2.3.4.5:

GRANT ALL ON multicraft_daemon.* TO daemon1@'2.3.4.5' IDENTIFIED BY 'mysql_password_for_daemon1';

  In the "multicraft.conf" of daemon 1 you would then put:

database = mysql:host=1.2.3.4;dbname=multicraft_daemon
dbUser = daemon1
dbPassword = mysql_password_for_daemon1

  It's also possible to use the same user for all daemons. In that case
  you'd replace "TO daemon1@'2.3.4.5'" with "TO daemon@'%'" in the above
  example.

  You can further restrict the database access of daemon users based on
  the following security recommendation: Separate Daemon and Panel
  Databases


System Settings -> Additional Drivers is empty. How then do I install proprietary drivers?

Execute on a terminal (Ctrl+Alt+T) dpkg -l | grep nvidia- to list all NVIDIA related packages.
Remove them all except nvidia-common, e.g. sudo apt-get purge nvidia-current nvidia-current-updates nvidia-settings-updates.
Install only nvidia-current: sudo apt-get install nvidia-current.

Reboot your computer.


Why some apps have to be started via terminal?

This is probably not the best way, however it might save the day.

Open your terminal and locate to desktop,

cd ~/Desktop

Create a file and give it the name you want

touch appShortcutName.sh

Write the path of your application(replace . with the real path
in ./app_name) into this file.

echo /path/to/your/app_name > appShortcutName.sh

The file is not executable right now, so you cannot run it via
double clicking. Change file permissions.

chmod u+x appShortcutName.sh

After all these, you should be able to run it by double clicking.

For better solutions, check : How can I create launchers on my desktop?


CPU Governor broke on upgrade from 20.04 to 20.10

Appears to be fixed by upgrading to 21.04.
shrug no clue why/how/what but it's definitely not throttling the CPU after I upgraded today.
It will be nice to not have to manually set the min/max perf pct settings every few hours.


Where I can find the source code for Raspberry Pi 4 images

I'm assuming that you are on the latest Ubuntu version 20.10 (Groovy)
The source code for groovy can be downloaded in two ways
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-groovy
Or via enabling src packages in /etc/apt/sources.list and doing a
apt install linux-source
However you are correct the build instructions for ubuntu are well out of date and I've not succeeded in building one from scratch yet.


Is APT slated for deprecated with SNAP on the horizon?

On platforms using Ubuntu Core which is intended for IoT devices apt packages may (or have already) go away.

But on the server and the desktop they will not. The core system will likely keep using apt packages for a long time. But user application may move to snaps depending on their use case and dependency problems they could face.


You can use gparted software to resize another partition and add resized partition to your Ubuntu partition. Goto software center and type gparted. Most of the case the first result will be the GParted software(Free software) itself install and enjoy.

Updated: Both facts mentioned by Uri Herrera are true. But I've made some assumptions here. Continue if your system has partitions like this.
1. You have at-least 3 partitions, one for Windows, second for Ubuntu, another for your stuff.
If this is so, you can resize partitions other than Ubuntu and Windows partition using gparted but you cannot add to Ubuntu since it was mounted.

So you can do from windows itself.
Browse and download Easeus partition manager. You can do both resizing and adding to Ubuntu partition. At-least you can expand up-to 30 GB.


Using VLC to play DVDs, get Green screen

I had the green-screen issue on Xubuntu 17.04 and fixed it via the following:

In VLC select Tools -> Preferences
Select the Input/Codecs tab
Change the Hardware-accelerated decoding option to Disable


Change Folder/File Permissions for HIDDEN Subdirectories

You need to use the -R flag, which will recurse into every subdirectory. For example, running sudo chown -R my_username:my_username .hidden will make .hidden and all subdirectories owned by you.

The * glob doesn't match any hidden directories (directories starting with a .).


I can't add a Indicator Applet to Panel in Gnome-Classic

Indicator-Applet

Indicator-applet is now available for testing in a PPA.

As with all PPAs - these are for testing purposes.  Have a stable backup or use ppa-purge to remove PPAs that could make your system unstable.

sudo add-apt-repository ppa:jconti/gnome3
sudo apt-get update

Now install the applet you want to add to the panel:

1) The whole indicator applet:

sudo apt-get install indicator-applet-complete

2) Unity Global Menu type applet:

sudo apt-get install indicator-applet-appmenu

3) Session applet:

sudo apt-get install indicator-applet-session

4) Standard applet:

sudo apt-get install indicator-applet

To add to the panel:

Win+Alt+Right click the panel if using Gnome-Classic or
Alt+Right click the panel if using Gnome-Classic (No Effects)

Choose Add To Panel and add the following indicator

You can tidy up by removing the old notification area.

The end-result could look like this:

N.B. I've also added RadioTray, StackApplet and Skype...


Ubuntu 20.04 - "python-reportlab" not possible to install - Print driver with advaced features not installable

Many thanks. Solved the problem.
sudo apt-get install python-is-python2
Download python-reportlab & python-reportlab-accel
wget http://de.archive.ubuntu.com/ubuntu/pool/universe/p/python-reportlab/python-reportlab_3.5.23-1ubuntu0.1_all.deb

wget http://de.archive.ubuntu.com/ubuntu/pool/universe/p/python-reportlab/python-reportlab-accel_3.5.23-1ubuntu0.1_amd64.deb

sudo apt install ./python-reportlab_3.5.23-1ubuntu0.1_all.deb ./python-reportlab-accel_3.5.23-1ubuntu0.1_amd64.deb

Now it was possible to install the driver.


How to search for files containing specific word?

With command line you have several options. The 3 I use the most are...

locate {part_of_word}

This assumes your locate-database is up to date but you can update this manually with: sudo updatedb
grep as explained by dr_willis.
One remark: -R after grep also searched within directories.
Example:

cd\
grep -R {something_to_look_for} {where_to_look_in}

find . -name '*{part_of_word}*' -print

Where . is the directory where you are at the moment and * is a wildcard.

Oh and you can also combine these. Example:
locate {something}|grep {some_part_of_something}|more

If I recall correctly: locate is the fastest one (assuming your database is up to date) and find is the slowest one. And grep is the most complex but also the most versatile one of these since you can use regexes.


According to Akshay's comment, the directory was filled with lots of log files. Logging in as superuser and deleting the files solved the problem.


No driver for Panasonic workio dp-c323 photocopier

According to it's specifications this office machine supports PCL6 printer language, it can support PostScript 3 with an optional module.

If you have the PostScript 3 module it should be possible to use the PPD file provided by Panasonic to get this printer working (recommended), if you don't have that module you can still select one of the Generic PCL6 drivers included with Ubuntu.


Help Uninstalling Ubuntu from Windows 7, both on same drive

Try using EasyBCD. Use EasyBCD to delete the Ubuntu Entry. Ubuntu recently messed up my Uefi boot on my system and i wont be trying it anymore.


The inbuilt speaker works on 4.2rc5 kernel on ubuntu 15.04. I had to pass the following kernel flags while booting intremap=no_x2apic_optout and then use alsamixer to turn on SP0.


Change the number of workspaces shown in the workspace switcher in the Unity sidebar

While maybe not impossible it would be quite a bit to do based on how it currently works and implemented, plus any changes have to be compiled in.

It is set to only work on 2x2 Ws setup, on any other you'll just get the default icon. (- workspace-switcher-top-left icon
Based on viewport position what you see is another icon, not 1 icon dynamically changing, there are 4 icons available for use. So for more than 4 Ws's you'd need to create a complete new set of icons.
The positioning is  currently defined by vp.x a # & vp.y a #, not sure that more than 4 could be defined as never tried based on above.

Here I patch unity to work for 1x4 (cube,rotate) ws's only, that was pretty easy as it's just redefining which icon for which vp.x/.y & which pattern, I choose -

1 2

3 4

instead of

1 2

4 3

So that's quite doable, what you ask for not so.


Boot your Ubuntu using SuperGrubDisk2 (http://www.supergrubdisk.org/ download the iso and burn it to a CD, then boot from it) and reinstall the bootloader:

sudo update-grub
sudo grub-install /dev/sdX where "X" is the drive letter of your boot-disk (normally "a")


There is a possibility that this is related to this answer, as it is explained in more details here, it seems that you have to enable the GPU's PCI audio function.

Here is one posible solution to this problem, copied from that other answer

  Create file /etc/systemd/system/fix-hdmi-audio.service

[Unit]
Description=nVidia HDMI Audio Fixer
Before=systemd-logind.service display-manager.service
After=module-init-tools.service

[Service]
Type=oneshot
ExecStart=/usr/local/bin/fix-hdmi-audio.sh

[Install]
WantedBy=multi-user.target

  Create file /usr/local/bin/fix-hdmi-audio.sh

#!/bin/sh
setpci -s 01:00.0 0x488.l=0x2000000:0x2000000
rmmod nvidia-uvm nvidia-drm nvidia-modeset nvidia
sh -c 'echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove'
sh -c 'echo 1 > /sys/bus/pci/devices/0000:00:01.0/rescan'
modprobe nvidia nvidia-modeset nvidia-drm nvidia-uvm

  and set it to runnable: chmod +x /usr/local/bin/fix-hdmi-audio.sh
  Enable the service: systemctl enable fix-hdmi-audio.service
  Install apt install pavucontrol then start "PulseAudio Volume Control". In "Configuration" tab, you can see only "Internal Audio".
  Reboot. Plug HDMI and play some music. Start "PulseAudio Volume Control". In "Configuration" tab, you should see "Internal Audio" and
  "HDA NVidia". In "Playback" tab, there is a button on the right side
  of your music player. You can choose "Internal Audio" or "HDA NVidia".
  Choose "HDA NVidia".


(does this really belong here)?

Example: using the math library. Create this file with your preferred editor:

#include <stdio.h>
#include <math.h>  //this declare the math library

int main() {
        printf("%f\n", sin(1.0)); // using math and stdio library
        return 0;
}

Then you compile:

gcc -o test test.c -lm -lc

Read: compile test.c to an executable called test using the libraries libc and libm (Notice: you do not need to use explicitly -lc -lm because they are linked in by default when needed; this is just an example --- other libraries you have to explicitly tell).

Run it:

[romano:~/tmp] % ./test
0.841471

Voilá.

You can get information for the library using section 3 of the man pages; for example
man 3 sin:

SIN(3)                     Linux Programmer's Manual                  SIN(3)

NAME
       sin, sinf, sinl - sine function

SYNOPSIS
       #include <math.h>

       double sin(double x);

  [...]

and so on.


You are opening the file with vim, not with nano. After editing the file press escape to exit the Insert-Mode. Then try :wq to write an exit the editor.


Unable to install 14.04 from boot disc on windows 8.1

I actually had to select try Ubuntu before installing and install through the live disc. I suggest trying this in addition to selecting nolapic + acpi=off to anyone encountering the same problem


increase linux partion size(file system)

To get 2 GB space from /dev/sda9 and add it to /dev/sda12,follow the below steps,

You must had to boot from ubuntu live disk.So that all the partitions will be unmounted.And make sure that no one is mounted.

After opening gparted,Right click on the /dev/sda9 partition and select Resize/Move option.Resizing it to get 2 GB unallocated space.It was placed just below to the /dev/sda9 partition.

You need to move the 2 GB unallocated space just below to the /dev/sda12 partition,so that it can be combined with your ubuntu /dev/sda12 partition.

Right click on the sda9,select Resize/Move and move the dragger to the extreme right,so that the unallocated space will be moved just above to the /dev/sda9 partition.

Try the above step to move the unallocated space just above to the linux-swap partition(/dev/sda8).Now both the unallocated space will be combined into one(2 GB+5 MB)

Now right-click on the /dev/sda12 partition and select Resize/Move option.Now you can be able to add the unallocated space to the /dev/sda12 partition.


I think it's some kind of protection against direct downloads, nothing wrong with wget (the server is sending you a transparent 1x1 GIF image).

You can circumvent this by using wget with the -U flag, adding the user agent string of your browser, eg.:

wget -U "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.17 (KHTML, like Gecko) Ubuntu/11.04 Chromium/11.0.654.0 Chrome/11.0.654.0 Safari/534.17" http://static.die.net/earth/mercator/1600.jpg

BUT: You should first ask the owner of that website if it's ok to download the content this way. There has to be a reason why the usual wget approach is blocked (maybe it's intentional, maybe it's just misconfiguration).


Try restarting Ubuntu. Check for updates using

sudo apt-get update

Followed by

sudo apt-get upgrade

This might fix some store errors.


Any ubuntu plugin for terminal that creates a file with a basic html markup?

There is an easier method: create a "template" in ~./Templates and cp that to make a copy where you need it.


How to get default /usr/share/vim folder back?

Delete/backup all the files for vim under /home/youruser. If you use it as root, under /root as well. I recommend a .tar backup. Then run:

  sudo apt-get purge vim

Finally run:

  sudo apt-get install vim

That should do it.


How to decrease the padding of dock icons in ubuntu 20.04

You can do this following these two steps described below -

Change dashToDock extension setting -
a. open dconf editor
b. go to org/gnome/shell/extensions/dash-to-dock/
c. turn on custom-theme-shrink

Now you have to change theme css file -
a. now go to /usr/share/themes/Yaru-dark/gnome-shell/
(I'm assuming that you are using Yaru-dark shell theme)
b. open gnome-shell.css file in a text editor
c. search these lines of code -
#dashtodockContainer.shrink .dash-item-container > StButton, #dashtodockContainer.dashtodock .dash-item-container > StButton {
padding: 2px 4px !important; }

d. change padding to -
padding: 0px 0px !important;

Now restart your gnome-shell by pressing Alt+f2 and then running r command


Execute scripts and Java programs from apache/PHP

It was my classpath. A friend told me about the -cp flag that could be used to define the classpath. once that was in, the JVM found main().

however now i've just got to find out why it can't find the file i'm passing in for main to work on.


Root-level crontabs can be symlinked into /etc/cron.d/ . Everything in that folder is executed as root. It's possible for a root-level crontab entry to be executed as user-level, but that's a workaround and beyond the scope of the question. An example of such a symlink:

# ln -s /path/to/crontab /etc/cron.d/

User-level crontabs cannot be created by symlink or any kind of direct file management - crontab management is specifically designed to prevent users from doing that. All user-level crontabs must be created using the 'crontab' command, so that all user-level crontabs get checked for syntax, and get spooled in the same place.

Happily, the 'crontab' does more than merely open an editor. The command will accept entire files. For example, for the user owning $DomainName,

$ crontab /var/www/$DomainName/public_html

So it should be quite easy to add a user-level crontab to the webapp startup script.

In Ubuntu 16.04 and newer, cron jobs are slowly being replaced by  systemd timers, but that's also beyond the scope of the question.


Someone tell me why people writing GNU code use { like that?

Look at it ike this. People in England drive their vehicles to the left and the Americans on the right side of the road. And then we have people criticising on the advantages and disadvantages.

It is a formatting style, and it began the way the GNU founders saw it. You wish a change, bring it on!


Odoo 8.0 has dependencies that apt tries to install. However, some of these dependencies no longer have a candidate for your Ubuntu release. That is because Odoo 8.0 is already quite old, wherease your Ubuntu release is brand new.

Try a newer release of Odoo, like 9.0 or 10.0.


Problems with Internet connectivity with Belkin N150 wireless router on Ubuntu 12.04

This may not be a solution to the problem but it's a work around if you have an Android phone (depends on the model and carrier restrictions too).

I bought a Belkin N150 Wireless USB Adapter. It worked great for Windows 7 but when I installed Ubuntu although it paired well, I didn't get good signal and would disconnect most of the times. Belkin has driver for Mac And Windows but not for Ubuntu. I needed the Internet badly (my router is in living room and my study room is far from living room and I was lazy to shop for a compatible new wireless adapter).

It struck to me that Android phones have tethering option. I plugged my phone (Google Nexus)(it works with S3 too)  to the Ubuntu System and Turned on the USB tethering option and viola I got a great wired signal and was able to browse and download stuff again from Ubuntu m/c.

That solved my problem temporarily (until I find a right driver or new wireless adapter that works for Ubuntu). Forgot to mention that my phone is connected using WI-FI (also works with 3G).