You can use a nbtscan terminal program to find NetBIOS names on a network.

Open up a terminal and run this command to install nbtscan.

sudo apt-get install nbtscan

nbtscan usage :

Say your network router ip address is 192.168.1.1

sudo nbtscan [Your scan range] Can either be single IP like 192.168.1.1 or range of addresses in one of two forms: 192.168.1.1/25 or 192.168.1.1-255

Example of nbtscan command and results of scan.

sudo nbtscan 192.168.1.1/24
[sudo] password for neil:
Doing NBT name scan for addresses from 192.168.1.1/24

IP address       NetBIOS Name     Server    User             MAC address
-----------------------------------------------------------------------------
192.168.1.0 Sendto failed: Permission denied
192.168.1.69     ASUS             <server>  ASUS             00:00:00:00:00:00
192.168.1.255   Sendto failed: Permission denied
192.168.1.212    FTP              <server>  FTP              00:00:00:00:00:00
192.168.1.159    PXE              <server>  PXE              00:00:00:00:00:00
neil@ASUS:~$


How to install GCC6.3.x & G++6.3.x on Ubuntu 16.04

GCC 6.3 is available in Jonathon F's Launchpad repository:
https://launchpad.net/~jonathonf/+archive/ubuntu/gcc-6.3

This PPA could be used for installing GCC 6.3 from package, rather than from source, which should usually be the last resort (do note, it is not an official Ubuntu PPA).

For installing GCC 6.3 on Ubuntu 16.04, follow this procedure:

Remove any previous gcc-6 version installed:

sudo apt-get remove --purge gcc-6 g++-6 gcc-6-multilib
sudo apt autoremove
Add the gcc-6.3 PPA:

sudo add-apt-repository ppa:jonathonf/gcc-6.3
sudo apt-get update
Install the specific gcc-6.3 version, 6.3.0-21ubuntu1~16.04.york0 in our case:

VER=6.3.0-21ubuntu1~16.04.york0 && sudo apt-get install gcc-6-base=$VER gcc-6=$VER g++-6=$VER cpp-6=$VER libgcc-6-dev=$VER libstdc++-6-dev=$VER libasan3=$VER
Check the version of the just installed gcc with gcc-6 -v. Expected:

gcc version 6.3.0 20170628 (Ubuntu 6.3.0-21ubuntu1~16.04.york0)


How do I reset everything in regards to my network connection?

If you want to remove every configuration about your network, you can reinstall the packages that has anything to do with whatever you have touched, examples:

If you only touched the /etc/network* files, the easy way to go is purging the packages and reinstall them again (you should download separatelly the package):

dpkg -S /etc/network
avahi-autoipd, avahi-daemon, netbase, ntpdate, wireless-tools, wpasupplicant, ifupdown, clamav-freshclam: /etc/network
sudo dpkg --purge packages
sudo dpkg -i packages

If what you touched was more superficial, dpkg-reconfigure is your friend:

sudo dpkg-reconfigure packages

If you want a sure kill solution, reinstall from scratch :(.

Of course, if you had a list of every action you did, this would be more ease as going backwards in a video, reversing every change.


After installing ubuntu 14.04 alongside windows 8 i am unable to open windows 8.It is not showing up in the grub menu

In order to turn off secure boot and fast boot you need to enter the bios when you boot the computer. You can do this by tapping F2 when booting the computer as soon as you turn computer on. Some computers have different keys to enter boot sutch as ESC or F12. This can be different from manufacture to manufacture. If none of these keys work I would look at your manufacturers manual guide.


How can I get local files to appear in unity lenses?

You can try out the experimental file lens created by Michal Hruby which uses locate along with zeitgeist as the result backend (also called scope)

You can add it

sudo apt-add-repository ppa:ubuntu-desktop/ppa

sudo apt-get update


Can I specify how often a non-delivery report will get sent for a mail on the mail queue, Exim4

I was looking for the delay_warning setting. When a message is delayed, Exim sends a warning message to the sender at intervals specified by this option.

This needs to be added to exim's configure file:

delay_warning = 4h:8h:24h

The first message is sent after 4 hours, the second after 8 hours, and the third one after 24 hours. After that, messages are sent every 16 hours, because that is the interval between the last two times on the list. If you set just one time, it specifies the repeat interval.

See the exim documentation for more details.


Cloning Ubuntu to a larger partition with Clonezilla

FDISK reports disk size in MiB  (1024KB = 1MB). Does some rounding, too.

Not sure about Clonezilla, but various other utilities report disk size in MB (1000KB = 1MB).

If the difference in partition (disk)) sizes you see are in that neighborhood, you probably don't have a problem.

For example, fdisk reports my / (root) partition is 122.1 GiB.  The disks utility says it's 131 GB.  Both are correct.

To convert use: 1 GiB == 1.07374 GB.


Graphics and font problem in Ubuntu 14.04 with Intel Broadwell-U Integrated Graphics

This looks like a bug in Intel graphics drivers. There is no vivid HWE for trusty yet. So you can do one of these:

Wait till new HWE appears in Ubuntu repositories. It is a matter of a week or two, then upgrade to it. I prefer this.
Install Ubuntu 15.04.
Do 2 + Intel graphics installer. (I do not like this)


Generate a dir for unix sockets WITHOUT systemd

Instead of init.d services you may be lucky by writing your full script path into a file
called /etc/rc.local (you may have to create it) and make it executable
Like so:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

## Examples:
/usr/bin/foo              # a program
/usr/local/bin/bar.sh     # a shell script
/etc/init.d/foobar start  # a service

exit 0

The exit 0 is important!
Then make it executable:
chmod +x /etc/rc.local

Everything in there will be started as root at system boot.

rc.local is actually obsolete since 1983 and may not work anymore.
When the then new, now obsolete SysV-Init system was introduced, it served as a workaround for retaining even older methods of system initialization and it's not recommended to use it anymore.


WPS Office has not found any installed printers

The answer was provided in a rejected edit by an anonymous user. I'm posting the proposed solution as it results to be useful:

sudo snap connect wps-office:cups-control :cups-control

For WPS Office 2019:

sudo snap connect wps-2019-snap:cups-control :cups-control

Note: You can check the name of snap package in $HOME/snap folder.

After that, open the application and the printers will be shown as expected.


snap, cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_hkxDCG//dev: No such file or directory

try running snap list --all and look for 'broken' 'core packages'. If you find any try removing and re-installing.. that should fix it


Broken and Ugly App Switcher Ubuntu Budgie 20.04

There are two types of app-switcher with Ubuntu Budgie
The first is the standard alt+tab switcher.

The second is the previews switcher.  In your picture you have the previews switcher enabled.
You can disable this via Menu - Previews Control.  Logout and login and the default app-switcher will reappear.


Change the line that says Terminal=true to Terminal=false. It does not need to start within the terminal like that


No. Ubuntu One only supports synchronizing of folders under your user's home directory (or profile folder as it is called on Windows).


How do I get a log of commands eat a specified cpu like 80%

Everything you need is in /proc. But it's raw, unprocessed.

PID: Simply walk the proc tree. It's arranged in /proc/[PID]

User: /proc/[PID]/loginuid. It's a number, converting it to a name is fairly easy. (Reference)

CPU: /proc/[PID]/stat. You need to calculate the output value from the data.

Command: /proc/[PID]/cmdline


Why does Ubuntu use both systemd and init?

As far as I am aware, there has been no additional movement on systemd vs. upstart vs System V Init in the mailing lists for 15.04.  There was a summit meeting on this during the last Ubuntu Online Summit for developers, as seen here.  As far as I am aware, that was the last set of discussion on the issue.  It is likely there has not been any further movement on the issue since then.

Also, some discussion-point notes can be found on here: http://pad.ubuntu.com/uos-1411-systemd-transition  (but you'll need a Launchpad account that has access to the etherpad to view this).

  Please note: Your question is designed to inspire a discussion, rather than a clear answer.  Such questions and answers are outside the scope of this site, which is designed to provide clear questions and answers.  If you wish to inspire further discussion, you may consider emailing the Development mailing lists, or try posting on Ubuntu Forums instead.)


How can I install a Hauppauge WinTV HVR1110 card in Ubuntu 16.04?

I figured this out, mostly based on the previous link to the LinuxTV page but with a few modified steps.

Note: This is specifically for the HVR-1110 card - but it can probably apply to other similar types of tuner card.

1. Physically install the card

Obviously the card needs to be installed in the PCI slot of your machine. Make sure you turn it off before you do this.

I also like to turn of the PSU at its switch, but leave the cable itself plugged in. This should in theory mean that the earth is still connected but the power cannot come on. You'd want the earth connected so you reduce your chance of frying something with static charge.

2. Test the saa7134 driver

The saa7134 driver should be automatically loaded, you can check this with:

$ sudo modprobe -r saa7134

Which should give back:

modprobe: FATAL: Module saa7134 is in use.

This error message indicates that the module has already been loaded (and cannot be re-loaded), indicating that the module is available.

Issue the following command to validate that the WinTV HVR-1110 card has been registered as a device:

$ sudo dmesg | grep "saa"

Which should give something similar to

[    4.061052] saa7134: saa7130/34: v4l2 driver version 0, 2, 17 loaded
...
[    4.061175] saa7134: saa7133[0]: subsystem: 0070:6700, board: Hauppauge WinTV-HVR1110 DVB-T/Hybrid [card=104,autodetected]
...
[    8.890761] saa7134 0000:06:01.0: DVB: registering adapter 0 frontend 0 (Philips TDA10046H DVB-T)...
[   14.099329] saa7134 0000:06:01.0: Direct firmware load for dvb-fe-tda10046.fw failed with error -2
[   14.099338] saa7134 0000:06:01.0: Direct firmware load for dvb-fe-tda10045.fw failed with error -2

Here we can see that the system is looking for the dvb-fe-tda10046.fw file, but cannot find it.

If you're using a slightly different card, the above output might give you a clue as to the file you need. You could modify the following step to give you the file you need instead of the one for the HVR-1110.

3. Download the linux-firmware-nonfree package

The linux-firmware-nonfree package is not in the repositories anymore, I'm not really sure why but I read something suggesting it might be incompatible with newer kernel versions. So, we probably don't want to install the whole package itself. Fortunately, we just need a single firmware file from it - so we can install just that.

Let's get the package from a Launchpad archive, and pull out the dvb-fe-tda10046.fw file.

cd ~/Downloads
wget http://launchpadlibrarian.net/182181877/linux-firmware-nonfree_1.16_all.deb
ar p linux-firmware-nonfree_1.16_all.deb data.tar.xz | unxz | tar x ./lib/firmware/dvb-fe-tda10046.fw --strip-components=3

Now let's copy the firmware file to where it needs to be:

sudo cp dvb-fe-tda10046.fw /lib/firmware

Now we can remove it from our downloads folder

rm dvb-fe-tda10046.fw

4. Reboot

You'll need to restart at this point.

After you're back up, you should be able to run this and see the firmware has loaded:

$ sudo dmesg | grep "tda1004x"
[    9.134105] tda1004x: setting up plls for 48MHz sampling clock
[   11.534099] tda1004x: timeout waiting for DSP ready
[   11.594099] tda1004x: found firmware revision 0 -- invalid
[   11.594100] tda1004x: trying to boot from eeprom
[   13.982081] tda1004x: timeout waiting for DSP ready
[   14.082077] tda1004x: found firmware revision 0 -- invalid
[   14.082079] tda1004x: waiting for firmware upload...
[   33.314053] tda1004x: found firmware revision 29 -- ok

Success! This should now be all you need to get the card installed. You can use whatever DVB tool you like now to scan and tune TV broadcasts - I won't repeat the many guides available for this but you could start here.

Bonus: Analogue recording

I specifically wanted to record from the analogue input. It took me a little bit of messing around to finally figure this out, so I'll share the command that worked for me with the HVR-1110.

Firstly, TVTime was really helpful for viewing the analogue input to the tuner, so install that with:

sudo apt install tvtime

Then you can just run TVTime from the Dash, you should be able to select "Composite1" as the input.

To record, I tried a few things but found this worked well enough:

sudo nice --10 mencoder tv:// -v -tv driver=v4l2:norm=PAL:width=720:height=576:outfmt=uyvy:device=/dev/video0:input=1:fps=25:buffersize=500:alsa:amode=1:forcechan=2:audiorate=48000:adevice=plughw.SAA7134:forceaudio:immediatemode=0 -ovc raw -vf format=uyvy -aspect 4:3 -noautoexpand -oac pcm -o /home/sean/Videos/VCR4.avi

You'll need mencoder installed.

This will dump a raw uyvy video file, which will be playable in VLC but will not be compressed. It will take up a lot of disk space (mine used about 1 GB per minute). You'll then have to use your choice of codec to compress it, you can do this with ffmpeg. It would also be possible to encode directly with mencoder if you prefer.


While loop does not work, it reads the first line and exits and the locate command that is used does not output the value

why IHS= at this place?

If IFS is needed for thos script, you might consider something like

OLD_IFS=$IFS
IFS=
... your script
IFS=$OLD_IFS

The beginning of yout script this becomes:

#!/usr/bin/ksh
file="test.txt"
while IFS= read -r line
do


It says here that you also need to disable Intel Smart Response Technology. Read the wiki and make sure that all the requirements are met.

Also at boot try to chose on what media you want to boot on. (You have a boot menu where you can select it, I usually do it by pressing F12 on my computer but it may be different on yours). Even if it doesn't work at least you might get some error messages that way.


System Settings icons missing with Numix uTouch

We no longer maintain uTouch, you should consider switch to http://me4oslav.deviantart.com/art/Numix-Circle-Linux-Desktop-Icon-Theme-414741466


Open Nautilus (Files program)
Go to User folder.
Press Ctrl + H (With this command show all hide files and folders).
Find .cache folder and enter.
Find vlc folder and delete.


I am quite confident that as soon as boot up is complete and the helper module asus_nb_wmi loads, it turns OFF the wireless; please note:

  2: phy0: Wireless LAN
   Soft blocked: yes
   Hard blocked: yes

Let's try a driver parameter. Please open a terminal and do:

sudo -i
echo "options asus_nb_wmi wapf=1"  >  /etc/modprobe.d/asus_nb_wmi.conf
modprobe -r asus_nb_wmi
modprobe asus_nb_wmi
exit

It may take a reboot. Any improvement? If not, repeat the above sequence but use 4 instead of 1:

sudo -i
echo "options asus_nb_wmi wapf=4"  >  /etc/modprobe.d/asus_nb_wmi.conf
modprobe -r asus_nb_wmi
modprobe asus_nb_wmi
exit


If no other users other than you uses these scripts:
Then you can keep them in /home/$USER/bin. Create the bin folder if it is not there and move the files there. The bin folder in your home will automatically get added to the PATH environment variable. The code is in the .profile:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

See How to add /home/username/bin to $PATH?
Or in some systems it may be in .bashrc:
export PATH=${HOME}/bin/:${HOME}/.local/bin:${PATH}

Thanks Elder Geek
If these script are to be used by other users:
Then either /usr/local/bin or /opt/bin are good options. See Is there a standard place for placing custom Linux scripts?
Hope this helps


Try reinstalling Grub:

This is a quick and simple method of restoring a broken system's GRUB 2 files. The terminal is used for entering commands and you must know the device name/partition of the installed system (sda1, sdb5, etc). The problem partition is located and mounted from the LiveCD. The files are then copied from the LiveCD libraries to the proper locations and MBR. If, for example Windows is on sda1 and Ubuntu is on sda5, and Windows has overwritten the MBR, then the target for grub installation will be /dev/sda5, and the MBR in the boot sector of sda will be re-written for grub.

This operation will write to the MBR and restore the modules and core.img to /boot/grub. It will not replace or restore grub.cfg or fix corrupted files.

Boot the LiveCD Desktop.

Open a terminal window.

Determine the partition with the Ubuntu installation. The fdisk option "-l" is a lowercase "L".

sudo fdisk -l

If you're not sure of the partition, look for one of the appropriate size or formatting.

Running sudo blkid may provide more information to help locate the proper partition, especially if the partitions are labeled. The device/drive is designated by sdX, with X being the device designation. sda is the first device, sdb is the second, etc. For most users the MBR will be installed to sda, the first drive on their system. The partition is designated by the Y. The first partition is 1, the second is 2. Note the devices and partitions are counted differently.
    Mount the partition containing the Ubuntu installation.

sudo mount /dev/sdXY /mnt

Example: sudo mount /dev/sda1 Note: If the user has a separate /boot partition, this must be mounted to /mnt/boot Note: If the user has a separate /home partition, this must be mounted to /mnt/home. Encrypted home partitions should work.

Run the grub-install command as described below. This will reinstall the GRUB 2 files on the mounted partition to the proper location and to the MBR of the designated device.

sudo grub-install --boot-directory=/mnt/boot /dev/sdX

Example: sudo grub-install --boot-directory=/mnt/boot/ /dev/sda

Reboot

Refresh the GRUB 2 menu with

sudo update-grub


I made it on my own! :)
Maybe someone will use it.

Answer is here, however second and third line didn't work for me. As always some archive problem. Neverthless it was because of the nvidia, I will never move it again.

sudo apt-get purge nvidia-*
sudo apt-get install --reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg
sudo update-alternatives --remove gl_conf /usr/lib/nvidia-current/ld.so.conf

But I made a new problem, I can't change brightness at all. Is there any end of configuring this system..?


Ubuntu 11.04 doesn't distinguish between audio outputs?

This is likely a PulseAudio issue.

Install the package padevchooser and then use it to configure your sound card.


How to disable Internet connection for a single process?

I've just had the same question and found a really nice solution on ubuntuforums.org

Summary

add a group "no-internet" and add your user to it

sudo addgroup no-internet
sudo adduser $USER no-internet

add a iptables rule to prevent that group from accessing the network:

iptables -I OUTPUT 1 -m owner --gid-owner no-internet -j DROP

run the process you don't want to have internet access like with sg (execute command as different group ID):

sg no-internet "process command line"


Set Ubuntu partition back to active and boot with Chameleon

Chances are you need to re-install GRUB to your hard disk's MBR. (Chameleon has probably replaced GRUB.) Boot Repair can probably do this, or you can install GRUB manually (this requires that you be able to boot Linux, but a live CD should be OK, albeit perhaps with some changes to the procedure).


Headphone permanent background noise on Dell M4800

A number of laptops have an issue with poorly designed internal audio, specifically other on-board systems interfering with it.
This issue is especially prominent with this particular laptop, making it virtually impossible to listen to anything.

Fortunately, the issue can be solved by plugging the headphones into the docking station, instead of into the laptop itself.
Afterwards, make sure that the sound levels are correct with alsamixer.


Why is CPU frequency lower under load than when idle?

Typically, the maximum CPU clock frequency is a function of how many cores are active.

Use turbostat (linux-tools-common package) to read and decode the MSR_TURBO_RATIO_LIMIT register. Example (edited, 4 core processor):

$ sudo turbostat
...
cpu3: MSR_TURBO_RATIO_LIMIT: 0x23242526
35 * 100.0 = 3500.0 MHz max turbo 4 active cores
36 * 100.0 = 3600.0 MHz max turbo 3 active cores
37 * 100.0 = 3700.0 MHz max turbo 2 active cores
38 * 100.0 = 3800.0 MHz max turbo 1 active cores
...

Note: your processor is fairly new, I do not know if the distro version of turbostat is aware it. The upstream version is, I'm pretty sure.

Based on the comments, temperature might now be a concern. To observe, try this:

doug@s15:~$ sudo turbostat --quiet --Summary --show Busy%,Bzy_MHz,PkgTmp,PkgWatt,GFXWatt,IRQ --interval 15
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt
0.03    1600    767     26      3.70    0.12
0.04    1600    778     26      3.70    0.12
0.06    1627    1138    25      3.71    0.12
37.28   3495    45585   47      23.90   0.12  <<< Load applied
100.00  3500    120635  53      58.51   0.12  <<< Observe CPU freq pinned at 4 core limit
100.00  3500    120604  57      59.28   0.12  <<< Observe processor package temperature rising
100.00  3500    120598  62      59.96   0.12
100.00  3500    120646  65      60.96   0.12
100.00  3500    120603  69      61.53   0.12
100.00  3500    120603  70      61.88   0.12
100.00  3500    120643  71      62.17   0.12
100.00  3500    120634  71      62.35   0.12
100.00  3500    120615  72      62.52   0.12
100.00  3500    120683  73      62.66   0.12
100.00  3500    120656  74      62.86   0.12
100.00  3500    120630  75      62.97   0.12
100.00  3500    120623  75      63.04   0.12
100.00  3500    120616  76      63.14   0.12


Where do I find drivers for the Realtek 8111E LAN controller?

The driver can be found here as well as the answer as how to install it. The ASUS P8H61-M LX motherboard comes with the Realtek® 8111E , 1 x Gigabit LAN Controller(s) therefore the proper driver needs to be updated.


How do I remove an extra dock in cairo dock?

Delete all the items on the unwanted dock. To do so, just right click on each icon and go to "remove." When they are all gone, the dock will disappear.

There might be another way via the settings, but Cairo dock's are so utterly confusing that I couldn't find one.


"Please unlock disk mmcblk0p3_crypt " error on surface tablet

I do not have a Surface 3, but there are many pages showing some instructions may help you.

  how can I proceed?

If you have installed ubuntu with disk encryption, re-install the ubuntu disabling the disk encryption.
When your ubuntu boots the first time, install the linux kernel packages for Surface.

sudo add-apt-repository ppa:tigerite/kernel
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install linux-surface
sudo apt-get dist-upgrade


no sound after upgrade from 16.04 to 18.04

So since pulseaudio is loading I decided to load the pulseaudio volume control. I saw that headphones were unplugged. I thought why not, at least I might get some sound. So I plugged them in and they worked and better than that, my speakers started to work.

So I guess it is fixed.


Setting the default ALSA device for Pulseaudio

Answering the two questions:

You can select the default device in PulseAudio with a GUI like the GNOME volume control, pavucontrol, or from the command line using pacmd set-default-sink.

By default, PulseAudio opens devices for 44.1 kHz or 48 kHz, whichever leads to lower resampling effort (so 96 kHz audio would usually lead to the device being opened at 48 kHz. Also, we open the devices for S16LE by default.

Now, you have two options. If you just want to play a few files at their native format, paplay --passthrough <file> should do the job for you. You can even specify which device to use.

The other option is to globally make PA use 96/24. You can change that in /etc/pulse/default.conf (alternate-sample-rate = 96000, default-sample-format=s24-32le). This will lead to greater CPU usage, though. This is a bit of a silly situation, having to apply global configuration for all devices. We're planning to add per-device configuration at some point.

Note, after this, you should just use mplayer's PulseAudio backend rather than have mplayer talk to ALSA and then ALSA to PulseAudio. You can do that with mplayer -ao pulse ... and if you want to set it up permanently, add ao=pulse to ~/.mplayer/config.


Can't boot into Linux Dual Boot. HP goes directly to Windows8

The only thing that worked for me was installing boot-repair on a USB and booting from it. I found out that whenever I make a change in the BIOS and "Exit and save changes", I'd lose access to Ubuntu, looks like Windows "fixes" the boot and then I can't access GRUB.


If you are using Unity you can just click on System Settings >> Details. Look at default applications and/or removable media. Select "Do nothing" or "Ask what to do" to stop auto-starting of the selected default application.


Wifi signal weak while on an HP Pavilion G6

Did you try this?

sudo iwconfig wlan0 power off

(Assuming wlan0 is the wireless interface you're running.)

This may fix the problem. This does not turn off your wireless card; rather, it disables power management for your wireless card. See man iwconfig for details.


Can I determine if a Grub menu.lst is valid on a virtual machine without rebooting?

this requires access to the grub shell if you can get that far

grub> root (hd0,0)               #Replace with your root drive
grub> cat /<TAB>                 #Check if files appear
grub> configfile /grub/menu.lst  #Check menu.lst

source: http://technotes.twosmallcoins.com/?tag=bootgrubmenulst


Where can I locate the file that handles power configurations and HDD parameters?

hdparm is the command to get and set hard disk parameters.

hdparm is a command line utility for the Linux and Windows operating systems to set and view ATA hard disk drive hardware parameters. It can set parameters such as drive caches, sleep mode, power management, acoustic management, and DMA settings. GParted and Parted Magic both include hdparm.
hdparm has to be run with root privileges, otherwise it will either not be found or the requested actions will not be executed properly.

Some examples:
Display information of the hard drive:
hdparm -I /dev/sda

Turn on DMA for the first hard drive:
hdparm -d1 /dev/sda

Test cache read performance of the first hard drive:
hdparm -t /dev/sda

Enable energy saving spindown after inactivity (24*5=120 seconds):
hdparm -S 24 /dev/sda

To retain hdparm settings after a software reset, run:
hdparm -K 1 /dev/sda

Enable read-ahead:
hdparm -A 1 /dev/sda

If the disk is constantly too noisy, you can change its acoustic management at the cost of read/write performance:
hdparm -M 128 /dev/sda

External links with more examples:

Chamith
ThinkWiki
Documentaton for /proc/sys/vm


These problems seem to be caused by the dbus helper program having the incorrect permissions: it should have the setuid bit set but it doesn't. To fix this use this command and restart:

sudo chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper

To read more about this: http://f7t.fr/blog/?p=165


How to modify grub entry for supporting KGDB kernel image?

If you are using grub2 (which was the default in 10.04), menu entries should not be manually added to grub.cfg. Instead they can be added in  /etc/grub.d/40_custom or you can drop a new file in /etc/grub.d/. More GRUB2 info can be found here:

https://help.ubuntu.com/community/Grub2#Custom Menu Entries

As for the KGDB kernel itself, I'm certainly not an expert here. My understanding is that you need to also set kgdb8250=<port number>,<port speed>. You might try looking here for more KGDB specific help:

http://kgdb.linsyssoft.com/docu.htm


Signatures Invalid and Problem with MergeList error

Well, by digging around a bit (looking at the problematic files apt-get referred to in the errors) I found that apt-get downloaded interstitial pages placed by my ISP thinking it's a signature or package list, and ends up failing to recognize them. I'm not sure why it only happens with the ppas though, and why this only began yesterday.


HUD background changed to black and can't use wine

I had the same problem, but I had a black icon set installed. So, all I did was change my icons and I was able to see my applications and such. Also you should still be able to select applications or whatever by pressing ALT+F1, that will highlight Unity trigger, then type in the desired application, use your directional button to navigate, and tap down twice, then hit enter. That should open your application.

Tip: If you don't have MyUnity installed, I would suggest installing it. And, Ubuntu Tweak is another great tool to help you tweak HUD settings. If this doesn't help, and it's a graphics card issue, then you'll have to get advise from someone that's knowledgeable on specific hardware.


network bridge - without destroying network manager

Unfortunately, I keep answering my own questions aparently.
But just to share with others..

Bridge + openvpn works BUT internal network only. AND has an odd bug that openvpn re-connects it self making multiple TAP devices (I use tap method).

In the end i solved my problem this way:

go back to the normal Network management - default system stuff.
Add an additional ip (leave gateway blank)
Add ipv4 forward enabled
Add iptables DMZ rules (forwarding your additional ip on eth0 to the vm - and vice versa).

The weirdest problem about ubuntu is it seems to forget all iptables and ipv4 forward enbaled (sysctl) settings on a reboot.

so, just add it to rc.local and it will work fine on every boot/reboot :)

If you need exact details for the setup, just give me a ring. ;)


No, but it was originally planned to do so.

Original answer (now incorrect):

Yes, it will use Gnome 3 but with the
Unity shell.
See:

Launchpad Blueprint

Ars Technica

OMG! Ubuntu

Mark Shuttleworth Keynote


NFS typically use port 2049, so you could scan your network for hosts which have this port open and are listening.

This can be done for a single host e.g. using nc (netcat) or alternatively telnet:

nc -zvw3 192.168.1.42 2049
telnet 192.168.1.42 2049

If these commands succeed (telnet opening a connection and waiting for your input, or nc reporting success instead of connection refused or a timeout), you likely found the NFS.

Now you can either run the nc command in a loop to try it on all IPs in your subnet...

for ipaddr in 192.168.1.{1..254} ; do nc -zvw3 $ipaddr 2049 ; done

which might take a while if many of these addresses are offline, as it will then wait for the timeout (-w3 sets it to 3 seconds) on each of those.

An alternative might be to install a tool like arp-scan (sudo apt install arp-scan) to find all hosts in your network using

sudo arp-scan --localnet

first, and then scan their NFS ports manually.

Or you could install an all-in-one port scanner like nmap and use that one.

The obvious solution is probably to grab the phone and simply ask your admin for the IP though...


Switch between the keyboard layouts of the Xserver/xorg?

In Ubuntu 13.10, if your keyboard layouts are exactly in this order: English (US), Belgian (alternative), Tamil and:

if you have set English (US) keyboard layout, then:

to change to Belgian (alternative) keyboard layout, use:

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'be+oss'), ('xkb', 'in+tam'), ('xkb', 'us')]"

to change to Tamil keyboard layout, use:

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'in+tam'), ('xkb', 'us'), ('xkb', 'be+oss')]"

if you have set Belgian (alternative) keyboard layout, then:

to change to Tamil keyboard layout, use:

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'be+oss'), ('xkb', 'in+tam'), ('xkb', 'us')]"

to change to English (US) keyboard layout, use:

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'in+tam'), ('xkb', 'us'), ('xkb', 'be+oss')]"

if you have set Tamil keyboard layout, then:

to change to English (US) keyboard layout, use:

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'be+oss'), ('xkb', 'in+tam'), ('xkb', 'us')]"

to change to Belgian (alternative) keyboard layout, use:

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('xkb', 'be+oss'), ('xkb', 'in+tam')]"

Obs: These commands works only in Ubuntu 13.10 (and maybe later versions).


Any UNIX based OS cannot have two different home directories. The problem would have been solved if you had chosen the same home directory for the new version. You didn't have to format that way too.

To move the launcher from left to bottom type in terminal:

gsettings set com.canonical.Unity.Launcher launcher-position Bottom

To enable windows minimize on click type in terminal:

gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true

If you encounter any error type in terminal:

apt install gsettings

and then repeat the above two commands again.

Have a nice experience with Ubuntu 16.04.


"watchdog: BUG: soft lockup CPU stuck" error and black screen on login

I was able to follow the instructions here to log in

Lubuntu 16.04 gets stuck at shutdown (nmi watchdog bug soft lockup - cpu#1 stuck for 22s)

and then installed the NVidia graphics drivers.  That seems to have fixed the problem.


Ubuntu Software Center does not start on Ubuntu 20.04

Run the following in terminal:

sudo apt update
sudo apt install gnome-software


/lib/x86_64-linux-gnu/libz.so.1: could not read symbols: Invalid operation

--with-libdir=lib64 should do the trick. I think you forgot to do a make clean after adding the --with-libdir configuring and prior to make compile .
I've just compiled php version 5.5.2 using phpfarm and initially encountered the same issue described by you when using --with-mysqli=mysqlnd. Adding --with-libdir=lib64 AND make clean fixed the issue.


How do I activate the bluetooth function on my Ubuntu system if there's “no default controller available” and hciconfig pulls up nothing

I finally found a solution that works: sudo hciattach /dev/ttyAMA0 bcm43xx 921600
After running this command everything seemed to be fine.


You didn't provide much information but I suppose you downloaded the tor browser bundle. Now you have a *.tar.xz archive somewhere in you home directory. What you have to do is to extract the archive and start tor.

I will presume that you downloaded the archive to ~/Downloads directory. First you have to change the directory to the place where you downloaded the bundle. You can do it by entering the following command:

cd ~/Downloads

and extract the bundle via the following command (pay attention to the actual file name)

tar xf tor-browser-linux64-3.6_en-US.tar.xz

After you've extracted the archive, a new directory will be available, in my case it was ~/Downloads/tor-browser_en-US, you have to change the directory once again:

cd tor-browser_en-US

and now you will be able to start the browser via following command:

./start-tor-browser

Please be aware that you will have to adapt the previous commands depending on the location where you downloaded the tor browser bundle and what bundle you've actually downloaded.


In this script, ~ is /root/. How to be in /home/name-of-the-user/?

You are making this more difficult then it needs to be.

First, there is no reason your script (as posted) needs to run as root.

Second, you are using /opt rather then /usr/local . By default , ubuntu uses /usr/local and /usr/local is on the default path.

And third your are using ambiguous locations such as .. and pwd and ~ . It is best to use the full path and standard locations.

Why not use $HOME ?

[[ -d "$HOME"/.D3GO ]] || mkdir "$HOME"/.D3GO

Most of your other problems are solved with a decent make file or a well packaged .deb . If your script is dependent on things outside the script, files or .png, package it into a .deb or write a make file so that the things you need are installed into standard locations /usr/local or in the system if you wish.

If you are installing something, you would provide an archive and you should write your script relative to the archive you provide.

So your archive might be FOO and inside you would have

FOO/files
FOO/img
FOO/Your_script

So "Your_Script" can just call "cp ./file/file_to_install /where/to/install"

To be honest, most of your installation ("cp pwd" stuff) is best handled with either

Proper packaging into a .deb
A make file .

Either of the above have numerous advantages including, but not limited to, ease of installation, ease of removal, and installing files to standard, known locations.


The 20-GB Storage with music, does it have to be used for music?

You may use that storage for anything you want to; it is not limited to just music. You can store purchased music from the Ubuntu One music store, your own music, photos, documents, whatever you want. :)


Okay, for anyone else who gets this problem, it ended up being the 5.4.0-45-generic Linux headers and image. I downgraded to the 5.4.0-42-generic headers and my system worked flawlessly.
I followed the excellent instructions in this article to downgrade. One problem though was that upon removing the 45 kernel, apt installed linux-image-unsigned-5.4.0-45-generic for some reason, which I then had to remove to delete the 45 kernel completely (otherwise I was presented with a broken OS in which I couldn't even scroll...). Also, I was slightly intimidated by the prospect of autoremoving intel-microcode, but this actually caused no damage to my system whatsoever.
As always, make sure you have a backup before embarking on any kind of kernel alteration. Hopefully this bug will be fixed soon and those with this issue will be able to upgrade to linux-headers-5.4.0-45-generic through the normal Ubuntu methods!


You could do this within vim using the following command:

g/[Ss]erie\(s[ _]\|\)\d*/ normal gn^An^An^An^A

To use it, open your text example in vim, then press ESC, then :, then the above line. However, whenever ^A needs to be typed, type Control-v Control-a, which will insert a literal ^A symbol. It should just show up as ^A.

This will find all the patterns in your example and increment the number in it by one. Here is how it works:

ESC : will enter command mode in vim.
the command executed is the g command. It will run a command on all lines matching some regular expression.
[Ss]erie\(s[ _]\|\)\d* is the regular expression that should match all the patterns you requested. That is serie starting with capital or not capital s, followed by s and a space or _, or followed by nothing. Then followed by a number.
the command executed on every line by the g command will actually be 8 commands:

normal is just a keyword telling vim that what follows are not command line mode commands, but normal mode commands. That is, things you would normally just type when normally editing in vim.
gn moves the cursor to the place where the last match was found
Control-a increments the number (this would also work when you move the cursor to that position manually and just press it).
n moves to the next match. This is repeated 3 times.

This will need vim 7.4 and upwards to work. Also it will need adjustment if you have more than 4 occurrences of the pattern in a line.

I should note that using scripts or editor magic to change program code like this is quite a silly way to work. It would be much better to improve your program to generate the strings programmatically in an appropriate way.

Note: Your code looks like ImageJ. If that is the case, here is a document that could help you achieve something a little bit better: http://www.sussex.ac.uk/gdsc/intranet/pdfs/ImageJBatchProcessing.pdf


messed up perfectly good install of win10 with vbox would reinstalling vbox 1 possibly correct the problems

I corrected the problem by first Uninstalling vbox 6.1 on my Ubuntu 18.04 system. Then I reinstalled vbox 6.1 to newest revision.  After that i updated Ubuntu. Then I uninstalled Win 10 using the fresh install option in windows. I deleted all my files and directories of win10 during the process. This will also delete windows office as well so make sure you have your win office activation key. After that I rebooted Ubuntu and reinstalled win10 and office 2019. Then updated ububuntu again.  After this all problems were solved and it even solved the issue of win10 not recognizing any of my usb's when I tried to use them, so it works better than before, all problems solved. (don't worry about your virtual OS's they will not be deleted when u uninstall vbox.)


open your terminal and paste these lines one by one and try again

sudo add-apt-repository ppa:unity-team/ppa
sudo apt-get update
sudo apt-get install unity

Hope that helps .


Ubuntu 20.04 touchpad doesn't work on new Lenovo Ideapad

$xinput shows the available input devices in the machine. but, the machine hava a data for it. So,Maybe it is hardware(touchpad) problem.
Maybe Hardware is good,just reboot and try any other OS.
else, see the settings for touchpad(Settings > mouse and touchpad> touchpad) is enable/disable. Many lenovo laptop's F6(function key) for enable or disable touchpad.


The description of the MS Surface Pro 4 indicates that it has a USB port. Thus, I recommend you buy a USB drive, if you don't have one, and install that way. If that's really impossible, then this procedure should work, with some caveats:

Repartition the disk so that it has a partition for the Ubuntu installation .iso file (as big as or bigger than that file) and create all the Ubuntu partitions you eventually want.
Write the Ubuntu .iso file to the partition you created for it. In Ubuntu, you'd use dd, but as you can boot nothing but Windows at this point, you'll need to use something else. Perhaps WinDD would work.
Download and install my rEFInd boot manager. You must also install the ISO-9660 filesystem driver that comes with it.
Reboot to rEFInd. It should show the Ubuntu .iso image as a boot option.
Select the Ubuntu .iso image. It should boot and you should be able to install normally, with one caveat: You might want or need to tweak the partition type codes of some of the partitions you created earlier.
After you're done, you may want to delete the Ubuntu .iso partition or employ it in some other way (like as a swap partition).

The big caveat here is step #1. IIRC, Windows' partitioning tools will let you shrink an in-use partition, but I'm not 100% positive of that. Also, I've never tested this procedure. I know that various critical pieces of it work in other contexts, but I'm not sure everything will fit together in this exact procedure. For instance, I know that rEFInd, with its ISO-9660 driver installed, can boot an Ubuntu installer .iso file when written to a partition on a USB flash drive; but I don't know that it will work correctly from the computer's main disk, particularly when that's also the Ubuntu installation target.


Remove windows 10 and install Ubuntu without losing files on other partitions

The first step is to download the disk image file of the Ubuntu distribution you want to install in your system. You can download any DE (Desktop Environment) version of Ubuntu, since you can always change it after installation when you desire to do so.

Create a bootable CD/DVD or a USB drive. Use any software like Rufus for this purpose. Download Rufus here https://rufus.akeo.ie/.

Insert the bootable media and select the option in your BIOS to boot from it. When you successfully enter the menu after booting from your bootable media, you can choose to proceed in two ways:

Either select Live boot to try Ubuntu once in your system and proceed to format your Windows partition from there using GParted, or you can straightaway proceed to the graphical install option, where you will format the Windows partition just before all your further installation steps.
I will recommend you to go with at least trying Ubuntu for once in the Live mode. Then you may again reboot from your bootable media and install Ubuntu using graphical install method.

You can proceed to delete all data of your Windows 10 partition (just that particular partition in which your Windows is installed) and then format it in EXT4 File System, which is the standard Filesystem for typical installations.

To do so, open GParted in live mode or if you select graphical install, after a couple of steps it will show a menu asking you to do the required partitioning.

Select your Windows partition and then select the delete option. This will delete all your data only in your Windows partition.
Then select the freed partition and format it in EXT4 File System. You may want to shrink some 4-8 GB (depends on your HDD capacity and RAM) for your swap partition, but you can add it after installing Ubuntu as well. See
I have 16GB RAM. Do I need 32GB swap?

When you format your partition in EXT4 filesystem, you must select it as your primary partition and set the mount point at / (which is the root directory).
From there on you can proceed to install in the normal way and just follow the instructions, nothing complicated.

For your convenience later you can opt for auto-mounting your NTFS partitions aside from your deleted Windows partition, by editing your FSTAB. That way you can easily access your data from Ubuntu and feel at home.

Welcome to Linux!


How to scan for analog cable channels on a DVB-T USB tuner?

Give a try to TVTime, which may help you to find aerial broadcast signals and with a few options you will be able to make your tvtuner work perfectly with analog signals, the same as cable or digital (digitals not tested by me and may require special hardware).

You can install tvtime via synaptic or by dropping the next in a terminal.

sudo apt-get install tvtime

Here is a few screenshots of TVTime in action.

Here is the main TVTime television viewer, with the analog channel 9 playing and the menu shown (right clic for menu, left clic for OSD)

Let's hit the Input configuration option in order to set up the video source, click again and again in order to cycle between the different video sources.

Back in the main menu, et0s choose "Channel management" and you will have the next screen, on which you may find the "Scan channels for signal", this can take a while.

In the same section you can find the "Change frequency table", on which you can adjust where is the tuner going to gather frequencies table, this will allow you to define whether to use Cable or Broadcast systems.

Additionally, if you face sound issues or no-sound while playing the tv station, just try this in a terminal, change the 48000 value for whatever your broadcast can stand for, in certain cases 32000 is good enough but it depends on your tv tuner.

tvtime | arecord -D hw:1,0 -r 48000 -c 2 -f S16_LE | aplay -

Please inform how are you managing this issue.

Good luck!

P.S. You can face an issue when changing those values and TVTime may won't work anymore. To override the setup I suggest you to backup the contents of the .tvtime folder (hidden) which is placed inside of your home folder in order to revert whatever changes you made.

Edit:

I am using this TV tuners:

PCI - Philips Semiconductors
SAA7131/SAA7133/SAA7135 Video
Broadcast Decoder (rev d0)
USB - Hauppauge! WinTV-HVR 850
Hybrid DTV Stick


apache is not starting after I upgraded to 13.10

I fixed it at last but it was not that easy. I had to purge and reinstall; apache2, php5, phpmyadmin, but I didn't touch mysql because I was afraid of losing my databases. Phpmyadmin gave me 404 error, I had to change folder permissions like

 sudo chown -R $USER:www-data /var/www
 sudo chmod -R 775 /var/www/

These links are helpful :

phpmyadmin throws a 404 on opening

https://stackoverflow.com/questions/19905825/resolve-error-default-site-does-not-exist-after-update-to-ubuntu-13-10-and-apach

Cannot find /etc/apache2/sites-available/default when configuring Apache

EDIT :

here I opted for No, because it might delete database config in phpmyadmin, luckily all database appeared in phpmyadmin after reinstallation.


how do I get to /etc/NetworkManager/system-connections/CONNECTION_NAME

CONNECTION_NAME is a placeholder. It's meant to be replaced with the name of the connection you are trying to edit.

Since you haven't said where you got that or what you're actually trying to do, that's all I can give you.


Chech this out. It's very useful Tuning LAMP

Especially chapater ->Resource related settings in php.ini


How to make an ethernet printer available to wifi network using an old laptop and Ubuntu?

Yes, that is possible.
Steps are:

install Ubuntu server
preferably, set static network address
set it to not suspend when closing the lid, so the laptop takes up less space
attach printer to server (it will probably be recognized rightaway)
browse to server on port 631, so you can see the printer server running (still locally, at this point). You may need to install cups, I'm not sure if that is installed by default.
install Samba
edit /etc/samba/smb.conf to share printer over SMB
On guest computers, install printer as a network printer.

All of these steps are described in detail elsewhere on the web.

I'm using not a laptop but a Raspberry Pi taped to the printer for that purpose.


How can I get a package update in the repositories?

To know who is maintening the package, have a look... into the package :-)

In a terminal, type apt-cache show anki.
You'll get a lot of information, but the relevant lines are:

  Maintainer: Ubuntu Developers
  Original-Maintainer: Andreas Bombe

So, now you know the mainteners of the packages. To ask them to update their package, report a bug: in launchpad.net for Ubuntu, or http://www.debian.org/Bugs/ for debian.

So now, question #2: will update in Debian result in update in Ubuntu ? Well, it depends on when it happens. On each release cycle, Ubuntu is synced with Debian. This is done until a date known as https://wiki.ubuntu.com/DebianImportFreeze. So if the update happens before this date, it will likely get into Ubuntu. Else, you'll have to wait for the next release cycle.


Try

sudo nano /etc/default/grub

change the GRUB_TIMEOUT value to 2 or 3

save

sudo update-grub


Cannot change Window Border of Gnome Classic session

As it was explained to me, Gnome 3 is moving towards the ability to allow each window to style itself.  The idea behind this goal is that applications can really improve their user experience by having their own custom colors and things.

For this reason, some "GTK3" themes aren't really Gnome 3 ideal.  You will find that some of the GTK3 themes (such as those on Gnome Look) work, while others do not.

If you experience an issue such as this, you can place your older themes in ~/.local/share/themes.  If you do not have the Current Theme option on Gnome Tweak Tool, you can manually set the Window Border/Current Theme theme using the following command:

gsettings set org.gnome.desktop.wm.preferences theme "THEME_DIRECTORY_NAME_HERE"

I hope this clears some stuff up.


I use Windows and Ubuntu together. I want to uninstall Windows

sure if you delete your windows partion all your data from windows are away if you safe your data on an another partion (like d:) they are save


Installation

Open up Terminal and run the following commands, entering your password when prompted. Press Enter after each command. Accept any prompts you may receive.

echo "deb http://download.webmin.com/download/repository sarge contrib deb" | sudo tee -a /etc/apt/sources.list
echo "http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" | sudo tee -a /etc/apt/sources.list
cd /tmp; wget http://www.webmin.com/jcameron-key.asc; sudo apt-key add jcameron-key.asc; cd
sudo apt-get update
sudo apt-get install webmin

That's it! Webmin should now be up and running.

Usage

By IP Address

To find your IP address, run the following command in Terminal:

ifconfig | grep eth -A 5 | grep 'inet addr:' | cut -d: -f2 | awk '{ print "IP Address: "$1}'

Browse to that IP address using your favorite web browser, appending :10000 to the end of the address. For example:

192.168.1.10:10000

Note: 10000 is the default port where Webmin resides, and you must specify it to access Webmin's control panel. If you don't, you'll be accessing the built-in web server's home page, not Webmin.

By Hostname

You may also browse to Webmin using your Ubuntu machine's hostname. To find your hostname, run the following command in Terminal:

hostname

Note: Again, don't forget to append :10000 to the hostname in the web browser.


This is not a plugin, this is an error in the coding. You can check it yourself by inspect element using Firefox.

This is the code of the control buttons ( start , pause and stop)

<map name="map1">

    <area shape="rect" coords="0,0,45,26" href="#" onclick="lightStop()">

    <area shape="rect" coords="47,0,90,26" href="#" onclick="lightPause()">

    <area shape="rect" coords="92,0,135,26" href="#" onclick="lightPlay()">

    </map>

While if you check the function lightStop() or lightPause() or lightPlay() you'll observe the error.

function lightPause() {
  swapImage('document.controls','document.controls','../common/controlspause.gif','swapImage1');
  document.presentation.DoPause();
  document.swapImgData[1]=document.controls.src;
      return false;

}

you'll notice an error raised

Uncaught TypeError: undefined is not a function

So in simple words, you don't need a plugin this is some coding error in the site.


Own brightness script, problem with missing ']'

In

if [ "$brightness" -lt 3]

there needs to be a space before the ]:

if [ "$brightness" -lt 3 ]


If all you require is the Ubuntu console (no GUI) you can install the Ubuntu application in the Windows Store for free and run alongside Windows 10. I use this a lot for work.


Right-click the group title and hit "Remove".


Why does my shell open many instances of itself?

The command chsh has nothing to do with changing your prompt. As the manpage of chsh(1) writes, it's purpose is to change your login shell. So at the moment ksh is your login shell. If you want to change that, simply enter

chsh -s /bin/bash picard

This makes bash your login shell. Usually this is the default at Ubuntu.

You can also open a terminal with the command urxvt -e /bin/bash or just urxvt -e bash. When you open a terminal without using the -e option, your system will start ksh. By default ksh only uses $ as prompt. So thatswhy you see no fancy user@system prompt.

However another way to change back your login shell is to edit /etc/passwd. Open the file with your favorite editor like:

sudo vim /etc/passwd #or
sudo nano /etc/passwd #or
gksudo gedit /etc/passwd

and move to the line with your user name. At the end of the line you'll find /bin/ksh. Change it to /bin/bash, save the file and log in again. Now you should have your usual shell back.

If you want to change your prompt, enter echo $PS1 to see actual settings. The bash manpage tells you what to change to have a nice prompt.


I think it might be an upstream issue. Linux Mint 17.2 (not 17.1) and Debian 8 are showing a CLI instead of GUI to decrypt system.


I had the same problem. It seems Ubuntu stores cached copies of the keyboard layouts in /var/lib/xkb.

What worked for me was deleting the xkm files in /var/lib/xkb: sudo rm /var/lib/xkb/*.xkm and logout and in again.

This solved the issue for me.


For simplicity I would install Guake from the distro. It is a terminal that once started will run invisible and when you press f12 it will drop down from the top of the screen .. press f12 again or click off of it and it will hide. Go on working and anytime you need to access the terminal just press f12

I think this may be what you are looking for


Ubuntu on Windows 10 with Windows Terminal (preview)

Click on Settings.

Choose a text editor to edit that .json file.
Find profiles entry and add this after the CMD entry putting a comma (,) after } to separate the entries.

{
    "acrylicOpacity" : 0.75,
    "closeOnExit" : true,
    "colorScheme" : "Campbell",
    "commandline" : "ubuntu",
    "cursorColor" : "#FFFFFF",
    "cursorShape" : "bar",
    "fontFace" : "Consolas",
    "fontSize" : 10,
    "guid" : "{GUID}",
    "historySize" : 9001,
    "icon" : "Absolute path of icon",
    "name" : "Ubuntu",
    "padding" : "0, 0, 0, 0",
    "snapOnInput" : true,
    "startingDirectory" : "%USERPROFILE%",
    "useAcrylic" : true
}

Save the file. Click on drop-down menu again to check if it has been added.

Notes:

To get the GUID of an app, see this question: How do I get GUID of apps installed from Microsoft Store?
You can download the logo in png format from anywhere of x48. I've used this icon and 48x48 size.

Credits: My answer on How do I add application on Windows Terminal?


Try just running the command sudo apt-get -f install, as the message recommended.


How can I install and run Ubuntu directly from an SD card?

If you have a dual-SD card reader where you can insert both cards at once, it's possible.
What you need to do is:

"burn" the .iso file on the "install SD"
boot from the install SD
install on the second SD (wiping it completely)
remove the "Install SD"
boot from the second SD.

Done!
If you want to optimise the system a bit have a look here for some advanced settings.


Please help me with Wine and other software installation

Try to run the following in a terminal:

sudo apt-get -f install

It should try to resolve any dependency problems, but might remove packages that it can't resolve dependencies for.


Configuring unattended-upgrades - which option to select?

As you can see in your screenshot, Keep the local version currently installed is pre-selected.
This is the best choice for you, because it keeps changes you eventually may have made active.
If you did not change anything, this option automatically keeps and provides standard settings.

You can change the settings later by running : sudo dpkg-reconfigure unattended-upgrades

Example : I disabled automatic updates on my machine to check what will be upgraded before.

If I would select install the package maintainers's version, my setting would get overwritten.

Alternatively you can change your upgrade settings by manually editing the 20auto-upgrades file ... Just  open a terminal and execute : sudo nano /etc/apt/apt.conf.d/20auto-upgrades.

Note : In case you get an apt notification /etc/apt/apt.conf.d/20auto-upgrades.ucf-dist has an invalid file name extension after running apt update, read my answer to this question.


kubuntu 17.10 system requirements for a new installation

Simply go to

https://kubuntu.org/getkubuntu/

download the 32bit version get Wubi installer on Windows or unebtootin under windows and install the image to your USB and check if your computer is suitable.

Without telling about your hardware, there is not really much to say.

If it is too slow, try Xubuntu or Lubuntu.


"No system tray detected" major problems after update

I manually made the jump to 14.04 with the hope that might fix something - but the problems persisted. I noticed during the update that there were some errors and forced installs around the nvidia 304 drivers so afterward I yanked the card and everything seems to run fine on the intel integrated graphics.

So it seems this was all a graphics driver problem...big surprise...all of my linux problems have somehow strangely been graphics card related in one way or another, so if you have a similar issue (or any issues) look there first. In my experience Nvidia's drivers have even broken some things that seem completely unrelated to the gpu at all - like wifi. Hopefully AMD's opensource efforts will pay off and there will be some decent GPU options in the future.


RDC into Ubuntu Server with Ubuntu Desktop running

I fixed the problem by installing mate desktop. Apparently there are known problems with the other desktops through RDP.
Got this from Griffon's IT Library.
http://c-nergy.be/blog/?p=8952


this is to be reported as BUG not an answer. use this command to generate and report bugs.

apport docky. that will collect and inform launchpad about docky.

ps: my docky also crashes very often but at that time I.will use report bug button in the crash window.

How :
Just open your terminal and type as

ubuntu-bug docky

then you will get a windows like

that will collect all the information about your application and with positive actions you can report it to launchpad.

for debugging program crash , I mean if you would like to trace yourself why its behaving like that you can read https://wiki.ubuntu.com/DebuggingProgramCrash


If I understand your setup, GRUB is useless unless the external hard disk is plugged in, so the easiest and safest solution is simply to ignore the Linux/GRUB entry in rEFInd when the external disk is disconnected. If there's some reason why this is undesirable or impossible, please elaborate.


Try to boot using the nomodeset option. To do this:

Restart your computer and select Advanced Options from the grub menu
Highlight the kernel that you want to boot into and press e to edit it.
Find the line that says "quiet splash" and replace it with:

  "quiet splash nomodeset"

press F10 to boot.

Is it working?


Yes I did it. It is easy once we know how to do...

1) Install XDoTool and Compiz

sudo aptitude install xdotool compizconfig-settings-manager

2) Open Compiz (Menu > System > Preferences > CompizConfig Manager)

ccsm

3) Go to commands and add this lines:

xdotool click --clearmodifiers 4

xdotool click --clearmodifiers 5

Hope I enjoy ;-)


How to delete all files in particular folder present in current directory sub-folders excluding a certain file?

With find:

find . -path '*/migrations/__init__.py' -exec truncate -s 0 {} + -o -path '*/migrations/*' -delete

This runs find in the current directory (.), and:

for anything matching migrations/__init__.py, it will run the truncate command. truncate -s 0 <file> reduces the file to size 0 (empty);
failing that match, for anything matching migrations/*, it will delete it;
the * in -path matches / unlike the * in bash.

Example:

$ tree
.
├── folder_1
│   └── migrations
│       ├── 0001_initial.py
│       ├── __init__.py
│       └── __pycache__
│           ├── 0001_initial.cpython-35.pyc
│           └── __init__.cpython-35.pyc
├── folder_2
│   └── migrations
│       ├── 0001_initial.py
│       ├── __init__.py
│       └── __pycache__
│           ├── 0001_initial.cpython-35.pyc
│           └── __init__.cpython-35.pyc
└── folder_3
    ├── admin.py
    ├── apps.py
    ├── __init__.py
    └── migrations
        ├── 0001_initial.py
        ├── __init__.py
        └── __pycache__
            ├── 0001_initial.cpython-35.pyc
            └── __init__.cpython-35.pyc

9 directories, 15 files
$ find . -path '*/migrations/__init__.py' -exec truncate -s 0 {} + -o -path '*/migrations/*' -delete
$ tree
.
├── folder_1
│   └── migrations
│       └── __init__.py
├── folder_2
│   └── migrations
│       └── __init__.py
└── folder_3
    ├── admin.py
    ├── apps.py
    ├── __init__.py
    └── migrations
        └── __init__.py

6 directories, 6 files

$ wc -l */migrations/__init__.py
0 folder_1/migrations/__init__.py
0 folder_2/migrations/__init__.py
0 folder_3/migrations/__init__.py
0 total


What are alternative reasons for low network connectivity?

This is and always will be a will guess without being on-site, but there here are some reasons that might prevent Ethernet to function properly.  Windows driver for the card might be able to do some automagic to degrade the settings of your card.  Or the card needs some poke to do the autonegotiation.

The most obvious might be duplicate MAC addressed.  List the MAC addresses on the affected PC, then shut it down and then try arping the MAC addresses from different machine.
Your router might be a real deal and block some default IP settings.  If you could try using some other generic router on the network, then do so to rule out this possibility.
Crooked or old cabling that prevent the card to function at higher speeds.  You might try setting the link mode to 10M or 100M manually using either mii-tool or ethtool.
Similar with full-duplex or half-duplex settings on the card.

Here's an article on mii-tool/ethtool that goes there in more detail.

One more idea how to debug the issue:

You can try sniffing the network interface using tcpdump or wireshark and observe the differences between pings initiated at the PC in question and pings initiated elsewhere.
The same can be done on the router if it's f.e. running embedded Linux, or you can plug a "sniffer" consisting of two network cards bridged together between router and the inside network.


apt-get upgrade - packages have been kept back: mysql

It's not an error, you should run apt-get dist-upgrade because in this case, the upgrade of mysql involve adding or removing some others packages.
If you are afraid of doing so, you can also try to run apt-get install mysql-server-5.5 which will trigger the update of this particular package (and i think it will handle the 2 others as dependencies).


Enabling autologin in ubuntu 20.04.02 LTS server on raspi?

The program that's producing the prompt you're seeing is agetty. You can change the systemd config to automatically log you in as some user on every terminal, or on just one.
For every terminal
Use systemctl edit getty@.service to change the ExecStart=- line to /sbin/agetty -a $DESIRED_USERNAME --noclear %I $TERM
For just one terminal
Launch systemctl edit getty@tty1.service
Copy the contents of /lib/systemd/system/getty@.service into your text editor
Change the ExecStart=- line to /sbin/agetty -a $DESIRED_USERNAME --noclear %I $TERM
Solution stolen from this question and answer: https://unix.stackexchange.com/questions/253928/how-to-configure-agetty-to-autologon-on-only-one-terminal
Don't edit systemd service files directly (thanks kamilcuk).


Can I install Ubuntu on a brand new SSD from a flash drive?

Provided your computer supports booting from usb, yes you can to an ssd. If haven't booted from usb before you should try before purchasing.

Install unetbootin, create the live-usb, and the reboot the computer and press the appropriate F# key (varies from system to system) to enter either your BIOS, or your quick-boot menu.

If you enter the quick-boot menu, then choose your usb device, and it will try to boot from it.

If you enter the BIOS then you'll need to change your boot order to removable first, save your changes, and then exit the BIOS.


How to connect a SONY PSP system to ubuntu?

Here's a link explaining you how to do it:

PSP to ubuntu


You can run winecfg in npp snap like this notepad-plus-plus.wine winecfg then change your screen resolution dpi.


Try to install debian first and then Ubuntu.So that the grub2 will be set as default bootloader.

Yes, both linux distros can be able to share a single swap.


How to make a home media/file server with Ubuntu sever, next to Ubuntu 12LTS

You could setup Serviio media server on your Ubuntu 12.04 LTS. I tested it with my Sony TV and it was OK. Here's a link to a step by step guide.


If someone does have the same problem like susana, i think i have solved it with

iceauth -i -b

when logged in as user with strg+alt+f1


Firefox 78.0.1 does not connect to Django development server running at localhost:8000

Your app is listening on localhost but as an IPv4 only service, while localhost has both an IPv4 address (127.0.0.1) and an IPv6 address (::1) in your (and most everyone else's) /etc/hosts.
When you try to connect to http://localhost:8000, Firefox resolves localhost to both, and picks one to try and connect to, it does not try them all.
You can solve the issue by explicitly going to 127.0.0.1, or, and since it's 2020 I'd favor this one, by making your app IPv6 aware.


'Mostly' compatibility on Openprinting.org?

About searching for perfectly working printers: the openprinting website lets you sort by manufacturer. Here is a list for HP. You will get the printers marked with  first and below that the printers marked

I used HP as an example for a reason: I have yet to purchase a HP printer that did not work in Ubuntu. Currently I have a HP PSC 2175 all-in-one and printer, scanner and card reader work out of the box.

And to finish it off: 'mostly' seems to be adressing printers that do work but have some minor issues (mostly not about printing). But to support Linux and you having the best experience... pick one from the once that do work flawlessly.


How to highlight the last active window in the GNOME shell preview

Preview is the same as our theme
The appearance of windows in the Activities preview from the GNOME shell depends on the theme we have installed. We can not add an additional window frame in this preview. From the default theme Adwaita there is then not much difference from an active vs. an inactive window. It is hard to spot.
Unfortunately we also do not have much options to change the windows decoration of an installed theme by design. However below are two examples of other themes which both have a better contrast from the active vs. inactive windows:
Faience
There is not a great difference, but it is a theme many users like. We can see that the active window's title (gnome-tweak-tool) is slightly darker than the titles of the two inactive windows (terminal, firefox).

Esco
This is one of the default themes that comes with the Ubuntu GNOME remix. Here an active window has a blue title bar, and a small blue frame. But this then is at cost of a somewhat more retro design.

It may take some time until we found a theme we may like. A starting point to look for community contributed themes is GNOME-LOOK.ORG but we may also try to make our own theme if we feel like spending hours customizing. Also see

How do I get and install more themes, icons, and pointers?


You said installed 2 Nvidia drivers.I think both are mixed up and creating the problem.Please follow this(this is an answer for another post which I copy here)

sudo apt-get purge nvidia-current

If you type that into the terminal, it will remove the propriatry drivers and go back to the stock drivers. I was having a similar issue and reformed the other day to figure out that the issues seem to be from the latest propriatary drivers. Once I uninstalled it and rebooted, everything was back to normal. Hope it helps!
(Thanx to Tommy)


How can a specify specific bluetooth adapter?

You could manually shut it down with sudo hciconfig hci0 down but a udev rule could work also gksudo gedit  /etc/udev/rules.d/10-local.rules and enter the following

ACTION=="add", KERNEL=="hci0", RUN+="/usr/bin/hciconfig hci0 down"

Save, exit and reboot


How to show Unity launcher in only one workspace?

Like many things, it does not exist as far as I know, BUT, it can be done with a little creativity and the right tools.

How it can be done

Assuming you are on 14.04 (with python3), you can use a script to run in the background, that keeps track of your current viewport and sets the launcher to autohide or not, depending on that current viewport.

What you need to do first is install wmctrl:

sudo apt-get install wmctrl

We need wmctrl to get information about the total size of all viewports and to be able to read information about the current section we are in.
Once that is done, copy the script below into an empty file and safe it as autohide_launcher.py (keep the name like that) and make it executable(!).

In the line hide_launcher, decide for wich viewports you want to autohide the launcher (set "True"), and use the correct number of entries, corresponding with your number of viewports. The list reads per viewport row, from left to right.

#!/usr/bin/env python3

import subprocess
import time

# set the hide-launcher values for your viewports; in rows/columns
hide_launcher = (False, True, True, True)

# don't change anything below (or it must be the time.sleep(2) interval)
key = " org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ "
pr_get = "gsettings get "; pr_set = "gsettings set "
check = pr_get+key+"launcher-hide-mode"
hide = pr_set+key+"launcher-hide-mode 1"
show = pr_set+key+"launcher-hide-mode 0"

def get_value(command):
    return subprocess.check_output(
        ["/bin/bash", "-c", command]).decode('utf-8').strip()

# get screen resolution
output = get_value("xrandr").split(); idf = output.index("current")
screen_res = (int(output[idf+1]), int(output[idf+3].replace(",", "")))

while True:
    # get total span size all viewports, position data
    wsp_info = get_value("wmctrl -d").strip()
    scr_data = [item.split("x") for item in wsp_info.split(" ") if "x" in item][0]
    # get current position (viewport coordinates)
    VP = eval(wsp_info[wsp_info.find("VP: "):].split(" ")[1])
    # calculated viewports rows / columns
    VP_hor = int(scr_data[0])/int(screen_res[0])
    VP_vert = int(scr_data[1])/int(screen_res[1])
    # calculated viewport positions
    range_hor = [i*screen_res[0] for i in range(int(VP_hor))]
    range_vert = [i*screen_res[1] for i in range(int(VP_vert))]
    viewports = [(h, range_vert[i])for i in range(len(range_vert)) for h in range_hor]
    current_viewport = viewports.index(VP); a_hide = get_value(check)
    if (hide_launcher[current_viewport], a_hide == "0") == (True, True):
        subprocess.Popen(["/bin/bash", "-c", hide])
    elif (hide_launcher[current_viewport], a_hide == "0") == (False, False):
        subprocess.Popen(["/bin/bash", "-c", show])
    else:
        pass
    time.sleep(1)

You can start the script by the command:

/path/to/autohide_launcher.py

Toggle autohide-per-viewport on/of

However, it is more convenient to use the script below to have one command to toggle the script on/of.

Copy the script below into an empty file and save it as start_stop.py, in one and the same folder as the autohide_launcher.py script. Make it executable as well(!). Now you can toggle the autohide function with the command

/path/to/start_stop.py

The start/stop script:

#!/usr/bin/env python3

import os
import subprocess

script_dir = os.path.dirname(os.path.abspath(__file__))
cmd = "ps -ef | grep autohide_launcher.py"
run = subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8").split("\n")
match = [line for line in run if script_dir+"/"+"autohide_launcher.py" in line]

if len(match) != 0:
    subprocess.Popen(["kill", match[0].split()[1]])
    subprocess.Popen(["notify-send", "autohide per viewport stopped..."])
else:
    subprocess.Popen(["/bin/bash", "-c", script_dir+"/"+"autohide_launcher.py"])
    subprocess.Popen(["notify-send", "autohide per viewport started..."])

Alternative ways to start or stop the script

There are several other ways to toggle the script in a convenient way:

Add the script to your startup apoplications

If you permanently want to run the script in the background:

Open Startup Applications and choose "Add".
Add the command:

/path/to/autohide_launcher.py

Give it a name to your liking

Set a keyboard shortcut to toggle the script

Open System Settings and choose: "Keyboard" > "Shortcuts" > "Custom Shortcuts".
Create a new shortcut of your choice, with the command:

/path/to/start_stop.py

Now you can toggle autohide-per-viewport with the key combination.

posted on gist.gisthub


Slide pane in impress not on the left side

Just click and drag the pane from the title "slides" to its original position.

I hope this will be useful for you, let me know it.


wifi hardware disabled after suspend mode

This will not be a complete answer. The exact method to fix what is evidently a filed bug is entireley experimental.

We see that both the modules hp_wmi and hp_wireless are loaded. Let's blacklist first one and then the other to see if the problem is resolved. From the terminal:

sudo -i
echo "blacklist hp_wireless"  >>  /etc/modprobe.d/blacklist.conf
exit

Reboot and test and report.

I will edit the answer as we experiment and learn more.

EDIT 1: Since this first step was ineffective, let's change it.

sudo nano /etc/modprobe.d/blacklist.conf

Change the last line from

blacklist hp_wireless

To instead read:

blacklist hp_wmi

Save (Ctrl+o) and exit (Ctrl+x) the text editor.

Reboot, test and report.

EDIT 2: Please be certain in Settings > Power that 'Turn off wifi to save power' is set to Off.

Please test and report.


Update from 10.10 to 12.04 without backup

You can upgrade without updating it will not delete your data but maybe some of the your softwares that are not supported by 12.04 will be deleted. But, I advice you to backup and never think to upgrade without backup.


Configuring phpMyAdmin - ERROR 1045 (28000): Access denied for user debian-sys-maint'@'localhost'

I solved the issue.
The failure was caused by missing of the avahi-daemon.service, which I uninstalled after the Kubuntu installation.
Once I reinstalled "avahi-daemon", I had to uninstall the "MySQL-Server" and all associated files, also I had to delete the user "mysql" and the group "mysql", then reinstall MySQL-Server and phpMyAdmin.


Ubuntu corrupted - cursors and scroll movement are erractic and not tocuchpad issue

Found the issue. The logs in the screenshot attach was printed to the terminal using tail -f and when the it was printing the garbage character. I thought system is printing ^[[H but that was not the case.It was just the Home button was automatically pressed due to some hardware issue. That explains the moving the cursor and the scroll to the start page.

I knew ^[[ characters are typed when the a special key is pressed in terminal when an input is not expected but this did not strike as the cause and I genuinely thought I fried my processor.

Anyway I pressed the home button a few times to make sure the hardware is solved and I am not having any problem since.


How can I autostart a SSH -D tunnel at login for a SOCKS proxy?

Set up password-less SSH login according to this answer:

ssh-keygen (you will be prompted for a password, leave it blank)
ssh-copy-id user@userserver (enter your SSH login password for the last time)

Add an startup entry for SSH:


libffi.so.7: cannot open shared object file: No such file or directory

Ubuntu 20.04 came with a shared library called libffi.so.7, from the package libffi7. This library has been referenced by one of your ruby gems, ffi.
In the standard repos for Ubuntu 20.10 there's no package libffi7 anymore, so it has probably been removed from your system during the upgrade. Instead, Ubuntu 20.10 brings a package named libffi8ubuntu1.
You'll need at least to check whether the libffi8ubuntu1 package is installed and reinstall the ffi gem, so it references libffi8 instead of libff7. I don't know whether libffi8 just replaces libffi7 in your use case, or whether you need to make more changes. Possibly you need to wait until the developers up the chain (the developer of the ffi gem and so forth) have made any neccessary adjustments and then install the new versions.


Qt Creator won't recognize any Qt version

The problem wasn't the missing Qt version but the missing tool chain.

In Tools → Options → Tool Chains add GCC and set your gcc path as the Compiler path.


Eclipse in Ubuntu - Project view navigation problem

There are two possible reasons I can see for this happening.

First, Eclipse running in Ubuntu by default uses the GTK3 graphics API.  This does not work properly.  You have to disable it until the suite of issues around this is resolved.

The following has some information about this: How to work around Eclipse Luna/GTK bug 339174 (change to not use oxygen) .

Second, you didn't mention this, but I see this particular symptom in my Ubuntu VM running in VirtualBox in full-screen mode.  You can tell if this is happening if you hover your cursor at the bottom right corner of a resizable window, and you see that the two-way drag icon doesn't appear until you're quite a few pixels down and to the right of the actual corner.  Until this is fixed, you can mitigate this by going out of full-screen mode (right-ctrl-f, most likely) and then back in.


Now I know how to:

startx /usr/bin/ghome-session --session=pantheon


Why does my XBox 360 Controller not work with Ubuntu 18.04?

Not that you should have to do this, but apparently this works for some people from Reddit:

sudo modprobe -r xpad
sudo modprobe xpad

This basically removes the xbox driver and adds it back.


Difference between Ubuntu 10.10 and 14.04 if kernel is same

Ubuntu isn't a rolling release distribution. A release (eg 12.04, 14.04) will use and maintain a particular version of its software for the life of that release, adding updates like security patches but rarely* changing the major version.

It's between Ubuntu's releases, you'll see the major upgrades of software. You can see this in the versions of gnome-terminal throughout the ages:

lucid (10.04LTS)   2.29.6-0ubuntu5
lucid-updates      2.30.2-0ubuntu1
precise (12.04LTS) 3.4.1.1-0ubuntu1
trusty (14.04LTS)  3.6.2-0ubuntu1
utopic             3.6.2-0ubuntu1
vivid              3.14.2-0ubuntu3

So yes, your kernel may be current but everything else is critically out of date by over three years. You only need to spend a few minutes on the Ubuntu Security Notices website to see what horrors you haven't been protected against.

Upgrade immediately. Actually, to upgrade to the next still-supported release would need upgrading through 11.04 and 11.10 first. Both are dead with their package archives archived away. And 10.10 is so far gone I'd recommend a fresh install 14.04.

It seems unlikely that it be impossible to run this tool of yours on a later version of Ubuntu.

* There are some packages (like Firefox) that just track upstream and some others that have exceptions made for on a case-by-case basis, though it is important to state that these are not typical.


No sound devices listed under hardware, no sound (one user account specific problem)

Either @Takkat suggestion worked or in mysterious ways something else worked, but after last restart all audio devices are back and working.


Why does u-boot calls GRUB on my embedded system?

Yes rpi3 can boot linux directly from U-Boot. I'm not sure why it uses grub2. U-Boot has EFI support now so it can boot grub2. It might help with distributions that are mostly designed for x86.


How can I change both names and file types of multiple files at once on Ubuntu 14.04?

Check if you can find the Perl rename script. It may be installed automatically. If you can find it, it accepts sed script. For renaming files, great! Allows regular expressions

rename 's/$/.dat/' A*

Will change files beginning with A by appending .dat. The $ indicates end of name. If you want rename to mat, same idea.

The sed Regular expression can be much more elaborate.

Beware, Fedora ships a different rename utility, not nearly so good. The Perl one I suggest has existed a long time, an original Larry Wall classic from 1997.


Wireless is disabled by hardware switch after connecting to ethernet

I had a similar issue.  In my case it was a BIOS setting that said: "WAN - LAN switching" that caused the Wireless to get disabled when connecting the Ethernet.


Asus X540S / Ubuntu 10.16 Headphones not working

I have the same laptop as you and also struggled with the same problem.  After(also) trying many hours worth of technical fixes, none of which worked. I finally downloaded the GNOME Alsa Mixer. As soon as I loaded it, it showed the headphones as being muted. I unchecked the "Mute" box, and they instantly worked! No restart necessary, not fancy .conf file editing. I hope this helps you out as well.


This is how you install libusb:
sudo apt-get install libusb-1.0-0-dev

Note that if you are using libusb in a C/C++ program you should include it the following way:
#include <libusb-1.0/libusb.h>

and not like this:
#include <libusb.h>

This is a common mistake that I was making. Finally you compile like this:
g++ source.cpp `pkg-config --libs --cflags libusb-1.0`


Disable ATI Radeon HD6470 in Dell Vostro 3350 and use integrated Intel in core i5

my case: Thinkpad T500: ATI HD3650 -> Intel
I think I did similar operation just minutes ago. First and foremost - simply switching option in the BIOS to 'Integrated' resulted in Ubuntu booting into command line only, without desktop.  I did the following to solve my problem (general outline):

Changed the BIOS display setting to 'Integrated' and booted into command line
Uninstalled ATI drivers (proprietary) as per http://wiki.cchtml.com/index.php/Ubuntu_Oneiric_Installation_Guide#Removing_Catalyst.2Ffglrx
Rebooted

For software switcher you may try the switcheroo https://help.ubuntu.com/community/HybridGraphics


SSH and SFTP for ubuntu in oracle virtual box is not working

The problem is using NAT as networkcard in Virtualbox. It is impossible to reach the virtual box OS using NAT.

There are two solutions:

If you have two network cards like cable, wireless and both are connected to your LAN, then you can change the network adapter in VirtualBox to bridging mode an choose one of the network cards.
The second solution (I particulary use) is installing Haguichi on Ubuntu and Hamachi on Windows. Create a new Network and connect both to the same network and use the IPs given by this virtual network.


dpkg -S thunar.xml yields:

xubuntu-default-settings: /etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/thunar.xml

This is possibly the settings file that you want to change. Beware that it will be overwritten whenever you upgrade xubuntu-default-settings package.

You might want to read up on update-alternatives to operate independently.


How can I test wifi on a laptop from a live disc of Ubuntu

First of all, make sure the wireless switch or key combination is set to enable wireless. Find out what the operating system thinks it is with a command from the terminal ctrl+alt+t:

rfkill list all

If you see any 'hard blocked:yes' then look around the laptop and find and change the switch.

Second, see if you have a wireless interface, ideally wlan0 or eth1:

iwconfig

If you do, that strongly suggests you have a driver installed. Then you should be able to click the Network Manager icon, see your network and connect. If you have an interface but see no networks, check the message log for clues:

dmesg | grep wlan0  <---or eth1 as needed

If not, as we suspect, the next step is to identify your wireless device:

lspci -nn | grep 0280

The pipe symbol | is on the right side of my US keyboard on the same key with the backslash. The device ID, something like 14e4:9876 is key. Use it to search this forum for the method to install the driver and, sometimes, firmware. I suggest Google, searching for the device ID and 'site:askubuntu.com.' Be aware that the method may vary for earlier Ubuntu versions, 10.04, for example, than from the newer versions, 12.04 or 13.04. You will have better results if you include your Ubuntu version. Find it with:

lsb_release -d

Of course, you can ask here if you get stuck.


tomboy in12.04 ubuntu add ins tags cant unfold

You can press Plus to unfold and Minus to fold.


Zoom window is too small on Ubuntu 20.04 with a 4K screen resolution and 200% scaling

Zoom currently creates a file named zoomus.conf under your .config folder in the user's home folder.
One of the settings is ScaleFactor, set to 1 by default. Set this to 2, and next time you start the application it will have appropriate-sized visuals.


This is clearly a bug. This bug report is quite similar to yours; when it's addressed that will hopefully fix our problems as well.

A workaround is to go to the Devices → Color menu in the settings and toggling color management for the problematic monitor off and on.


In Bash $# expands to the number of positional parameters that have been set.

if [ $a -lt $b ] means if the value of a is less than the value of b.

if [ $# -lt 2 ] means if the number of positional parameters set is less than 2.

In a working example you would perhaps use this to count the parameters given to a function. If you define a function as:

count_words(){
  if [ $# -lt 2 ]
  then
    echo "There are less than two words."
  else
    echo "There are 2 or more words."
  fi
}

Then call the function with differing numbers of words, the results would be as follows:

$ count_words hello
There are less than two words.

$ count_words how many words
There are two or more words.

$ count_words
There are less than two words.

$ count_words two words
There are two or more words.


keyboard one button shows wrong character

IMO, it is a really trivial solution because the issue is deeper. Having determined that which are greater,less, eacute, grave,  I have exchanged them from the keyboard layout C file(tr for me) on /usr/share/X11/xkb/symbols/.


You don't have permission to access / on this server. error for html app on apache server

No, you should not install anything more, but you should change the owner of the content to www-data, which is the user that runs apache. Consider for instance the folder js, where the owner (root) have full access, but all other users (including www-data which runs the webserver) have no access.

The letters drwx------:

First character is special, d means directory. Then there is groups of three. The three first in this case rwx indicates that the file owner has Read, Write and eXecute permissions. The rest is - indicating no access.

If it had been drwxr-xr-- it would have indicated that owner had all permissions, group (e.g. members of the group that owns the file) would have read and execute, but not write, and others would have read.

To be able to serv a file the webserver needs read permission on the file, and in addition execute permission on all directories in the path leading to the file.

To change ownership to www-data, run the command

sudo chown -R www-data.www-data /var/www/html

This is makes www-data the owner of the files, and your webserver will be able to serve the files.


I also have this problem. I reinstalled it and now it works:

sudo apt-get install --reinstall nautilus


First you should find a fast mirror geographically near you, example se.archive.ubuntu.com (Sweden) or no.archive.ubuntu.com (Norway), just put your country code instead of se or no so you can download fast.

Then wget --recursive http://se.archive.ubuntu.com/ubuntu/

When you use the --recursive option wget fetches all files and everything in all the subdirectories.

However, the Ubuntu package repository is HUGE, so sure you have enough disk space.


Application to automatically search lyrics and store them in ID3-tags

I know of no application that will actually automatically write the lyrics to the iD3 tag for the file but rhythymbox has a plugin that will download lyrics from the internet.

Also remember that not all lyrics are available and subject to copyright in many countries.

There are many applications that will however enable you to edit the iD3 tags of your files either individually or in a batch;

Easytag which is available in the software centre for installation.
MusicBrainz Picard which is available in the software centre for installation.
MP3 Diags which is a very feature rich and easy to use.
Puddletag simple basic application.


I think that you can see .netbeans folder.

In Ubuntu, the file that it's name starts with "." is hidden file.

In generally, you could not look hidden files in nautilus.

You can do it(let you look hidden files) with pressing CTRL+H(In menu, View/Show Hidden Files).


texstudio: error while loading shared libraries: libpoppler-qt5.so.1

I tried to install another package (blender) with apt-get and fortunately apt-get guide me to the solution of broken libraries for last installed package with dpkg.
As dpkg messaged me I done this first:

sudo apt-get -f install

with no package in next to install keyword. After That problem of dependencies solved, and both texmaker and texstudio packages works now.


feedingbottle/n”export: No such file or directory

So you've followed this "tutorial": http://www.n1tr0g3n.com/?p=1123

During that it told you to:

printf “PATH=$%sPATH:%s/bin/feedingbottle/\n” | tee -a ~/.bashrc

If you look closely you'll see that it's using curly quotes instead of the straight double-quotes (eg "). To Bash curly quotes are just another character, they aren't special like straight quotes.

So what you've actually done is added this whole corrupted line into ~/.bashrc. You need to fix it. Open ~/.bashrc in Gedit, or whatever you like, find this line (it's almost certainly at the bottom) and replace it with:

PATH=$PATH:/bin/feedingbottle/

And be more careful in the future.


Compare names of files in two directories in command-line

diff -q some_directory other_directory

It will list the differences between the directories with lines like this:

Files some_directory/ttt.pdf and other_directory/ttt.pdf differ
Only in other_directory xxxxx.pdf
Only in some_directory xxxTxx.pdf

If you also want to see the actual differences omit the "-q". If you only want to know what files are missing or different and also want to include subdirectories do ...

diff -qr some_directory other_directory


I tried setting up pptpd server and nothing will go through

Please inform what guide are you following. Try to watch the logs and inform here about the lines you consider most important. The logs should be defined into the configuration file, and if aren't, then logs are disabled or it is logging to default file(s).


How to install Wireshark on my Dell with Ubuntu 14.04

wireshark is in the universe repository:

sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install wireshark


Sending a simple TCP message using Netcat

Create file something.txt, content of file is 1

netcat [ip-address] [port] <something.txt

At destination you must have something to listen to this.

or

Server:

netcat -l -p [port]

to listen to the connection

Client:

netcat [server-ip-address] [port]

After connection is establish on cilent simple type
1 and hit enter


reStructuresText (rst) viewer with Sphinx

Formiko - reStructuredText and MarkDown editor and live html previewer is available to install in Ubuntu.

It uses the Python docutils library as does Sphinx for generating html from reStructuredText, so compatibility should be good (I've not tested extensively).


Create a file called setup.sh and make something that looks like this. Obviously add the packages that you want to install. Then you can run the script by doing sudo sh /path/to/script.

Note: I am using aptitude install instead of apt-get install but you can use either one.

#/bin/bash

# Updates Repo #
####################
sudo aptitude update
####################

# Upgrades The System #
########################
sudo aptitude upgrade -y
########################

# Mysql #
########################################################
sudo aptitude install mysql-server libmysqlclient-dev -y
########################################################

# Zip and Unzip #
###################################
sudo aptitude install zip unzip -y
###################################

# SMART #
######################################
sudo aptitude install smartmontools -y
######################################

# Webmin #
######################################################################
cd /etc/apt/sources.list.d/
sudo touch Webmin.list
sudo printf 'deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib' > Webmin.list
sudo chown root: Webmin.list
sudo chmod 644 Webmin.list
cd /root
sudo wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc
sudo aptitude update
sudo aptitude upgrade -y
sudo aptitude install webmin -y
#######################################################################

# Dependencies for Ruby #
#####################################################
sudo aptitude install openssl curl git-core nodejs -y
#####################################################

# Imagemagick #
####################################
sudo aptitude install imagemagick -y
####################################

# Apache #
############################################
sudo aptitude install apache2 apache2-dev -y
############################################

# Networking #
######################################
sudo aptitude install ifenslave-2.6 -y
######################################

# Passenger #
#######################################################################
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7
cd /etc/apt/sources.list.d/
touch Passenger.list
sudo printf 'deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main' > Passenger.list
sudo chown root: Passenger.list
sudo chmod 644 Passenger.list
cd /root
sudo aptitude update
sudo aptitude install libapache2-mod-passenger -y
sudo a2enmod passenger
sudo service apache2 restart
#######################################################################

# Samba #
##############################
sudo aptitude install samba -y
##############################


Software to watch changes on web and machine with ability to automaticaly act on them?

Specto is just what you are looking for!

Install it with:

sudo apt-get install specto

Description:

Unobtrusive update notification program
 Specto is a desktop application that will watch any user-specified events
 (web, folder, ...). This will allow users, for instance, to specify a website
 to watch, and Specto will automatically check for updates on the web page. It
 will then notify the user when there is activity. This will allow the user to
 be informed of new updates/events instead of having to look out for them.

Screenshots:


I think your question is a bit open ended and probably more a discussion topic than something we can handle here on AU but I will try to answer the question in the spirit in which you asked with my personal experience.

A wise man I respect once told me "Open Source isn't a spectator sport, it's a participatory sport." Or something along those lines, I don't remember the exact lines.  Like this site, it's pretty much about paying it forward.

Help someone out here.
or locally. Or anywhere else for that matter.
or contribute to Ubuntu directly.

I can't speak for every Ubuntu developer, but in my experience the best way to say thanks is to help the next person; at the most fundamental level projects that depend on community participation get better with more participation from more people.