EzDevInfo.com

lubuntu interview questions

Top lubuntu frequently asked interview questions

Is there any way to redraw the text in a terminal window after resizing it?

Just a usability question really. You know when you are working in a terminal window and you decide to do some query that brings back a wall of text and you think to yourself... "that would be easier on the eye if I made this terminal window a bit wider" *proceeds to resize*.

What I'm wondering is if there is any way to get the terminal to re-flow the text without repeating the queries you ran before? (Note: I'm using lxterminal.)


Source: (StackOverflow)

VirtualBox Host-only adapter with static IP and Apache

I have installed VirtualBox 5.0.14 on an Lubuntu 15.10 host, and created a virtual machine with Lubuntu 14.04.5 LTS as the guest OS.

I would like to set up a host-only network adapter in VirtualBox so that I can access an Apache webserver running inside the guest OS from a webbrowser running on the host system.

So far I have created a host-only adapter vboxnet0 which I can ping successfully from the host OS. However, I cannot access port 80 using a webbrowser or any other means.

What can I do to get to the cause of the problem and configure things properly?

VM network settings

enter image description here

VirtualBox vboxnet0 settings

enter image description here

enter image description here

Test results inside guest

After booting the VM and starting Apache (using sudo service apache2 start) I can access a test page on http://localhost/ using Firefox inside the guest OS without problems.

The corresponding Apache VirtualHost is defined as <VirtualHost *:80> in /etc/apache2/sites-enabled/000-default.conf, so I don't see why it wouldn't be accessible from any host.

Also, sshd and MySQL server are running on the guest. I can ssh to localhost and nmap shows all relevant ports open (22, 80, 3306).

Test results on host

On the host OS, vboxnet0 appears as follows and is pingable:

% ifconfig vboxnet0
vboxnet0  Link encap:Ethernet  HWaddr 0a:00:27:00:00:00  
          inet addr:192.168.10.10  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:16176 (16.1 KB)

% ping 192.168.10.10
PING 192.168.10.10 (192.168.10.10) 56(84) bytes of data.
64 bytes from 192.168.10.10: icmp_seq=1 ttl=64 time=0.023 ms

However, none of the ports are accessible:

% nmap 192.168.10.10 -p 22,80,3306

Starting Nmap 6.47 ( http://nmap.org ) at 2016-08-20 21:29 CEST
Nmap scan report for 192.168.10.10
Host is up (0.000027s latency).
PORT     STATE  SERVICE
22/tcp   closed ssh
80/tcp   closed http
3306/tcp closed mysql

Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds

Trying to match IP address

As per comment by @MarkoPolo:

Even though 192.168.10.10 is pingable from the host OS, I cannot access this IP address from the guest OS.

In fact, the guest OS has an IP address from the DHCP range specified in for vboxnet0:

eth1      Link encap:Ethernet  HWaddr 08:00:27:0d:b4:6a  
          inet addr:192.168.56.101  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe0d:b46a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1180 (1.1 KB)  TX bytes:1422 (1.4 KB)

The IP address 192.168.56.101 is not reachable from the host OS, i.e. not pingable, no access using webbrowser.

I tried updating the IP address of eth1 to 192.168.10.10 using ifconfig. Then, Apache is reachable on http://192.168.10.10 from the guest OS, however, still no access (aside from ping) is possible from the host OS.


Source: (StackOverflow)

Advertisements

Enabling PAE on Windows XP

When I try to enable the PAE switch in boot.ini nothing happens. I save the file and reboot, then reboot the system again to install Lubuntu and it says that there isn't PAE enabled. To be more specific, I'm running it on a Dell Latitide D600 and editing boot.ini through Windows XP SP3


Source: (StackOverflow)

How to autostart a program after network connection on Ubuntu?

How can I autostart chromium in lubuntu after a network connection?

I tried to add it ~/.config/autostart/ but chromium started before wifi connection so an error page is displayed.

I've been searched through Google but still cant find any solution.


Source: (StackOverflow)

How to turn a desktop Linux box headless

I'm sure this is a question that has been answered before, but with a number of different searches, I can't find it!

I have a computer with Linux already installed (Lubuntu 13.10), and when it boots, it will go right into the desktop environment. I don't want to remove the desktop environment, but I also don't want it to start at boot, because I usually access the box remotely.

What config changes do I need to make so that LXDE doesn't start at boot, but I can still jump into it with startx?


Source: (StackOverflow)

How do I add startup applications in Lubuntu/Lxde?

I want to add Gnome-Do to my startup applications in Lubuntu 10.04 and the only reference I've found on the net is to edit /etc/xdg/lxsession/LXDE/autostart. But surely there must be a way to do this on a user basis?


Source: (StackOverflow)

Why is my keyboard mapping wrong with Xming, Lubuntu in VirtualBox and Putty?

I am running Lubuntu in a VirtualBox guest on a Windows 7 host.

I have started the X server XMing on the host.

I use Putty with X-forwarding to ssh into the guest and use it to start lxterminal.

This works pretty well except that my Swedish keyboard presses are not coming across correctly. The effect is that I seem to be using a US keyboard although I am not. E.g. when I press 'รถ', ';' appears in the terminal. The same happens in xterm too.

Running this in the lxterminal:

$ setxkbmap -v 10 -query

Produces:

Setting verbose level to 10
locale is C
Applied rules from xorg:
rules:      xorg
model:      pc105
layout:     se
Trying to build keymap using the following components:
keycodes:   xfree86+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+se+inet(pc105)
geometry:   pc(pc105)
rules:      xorg
model:      pc105
layout:     se

So it seems that the layout is set correctly. Right?

Is there anything I can do?


Source: (StackOverflow)

Installed Lubuntu as dual boot to Windows 7 and now Windows won't load

Last year when I installed an SSD in my laptop, I partitioned off a few GB to try dual booting to Linux. At the time, I was able to set up Ubuntu on that partition and used EasyBCD to manage the boot process. I haven't really played with it since, until last night when I decided to switch from Ubuntu to Lubuntu.

I used PenDriveLinux to make a bootable USB drive of the latest Lubuntu (v12.10, 32-bit). The install went pretty much normally, but I found that it had preempted my EasyBCD bootloader with GRUB. Because of that and some other weirdness I discovered when using Lubuntu, I did the install process again. I honestly don't know what all I selected, but when I attempted to get back to Windows (still through GRUB) it won't proceed beyond a black screen with a blinking cursor.

While looking for options to fix this, I found this site which suggested the following to restore the Windows MBR:

sudo apt-get install syslinux
sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda

This did manage to remove GRUB and put the Windows bootloader back in charge, but it's still stuck on the black screen and cursor. I have run the Windows install program twice and had it do a repair but no luck (first time it just automatically went to repair, the next time I told it to repair the boot process).

I know that my data is still intact and that all the Windows and programs folders are still there because I can see them from Linux, but I can't seem to get the Windows boot process to function. Is there any way I can salvage this short of completely reinstalling Windows again?


Addendum: Since I'm a complete noob to Linux, I'll just throw some stuff out here in case it helps.

My laptop has 2 hard drives, one SSD (120GB with Windows and Linux partitions) and one 320GB spinning disc (one partition of just data). Could it be possible that my attempts to reload the Windows bootloader that it applied it to the wrong drive? Here is a link for the output of sudo fdisk -l. Not sure if I need to rerun the 2nd command above something more like of=/dev/sda2


Addendum 2: I went through all of NeoSoft's BCD Recovering the Windows Bootloader process. Every step completed successfully (it was all done on the 100MB system partition, not the C: drive) but there were no changes. After each step when they said to try rebooting, it still just got stuck on the blinking cursor. Went through all steps, including the "Nuclear Holocaust" of manually recreating all the BCD records. Makes me think that there are file(s) missing on that system partition that are vital to booting Windows.


Source: (StackOverflow)

Dropbox system tray icon missing, not working

On an Lubuntu 15.10 machine the Dropbox icon, which tells the state of the application and allows interaction, is missing.

When I start Dropbox, no matter if I'm using dropbox start, dropbox start -i or the lxpanel-bookmark, only a small camera icon appears in the "Indicator Applets"-section of lxpanel: Camera icon instead of dropbox icon

This is very annoying, since I always have to use the terminal to check on the status. What's the reason of this weird behavior? It used to work some time ago, I can't tell when it changed, probably a software update. Reinstalling doesn't work, and the icons exist in the ~/.dropbox-dist/dropbox-lnx.x86-3.14.5/images/hicolor/16x16/status-directory.


Source: (StackOverflow)

Is my old server too old? [closed]

I am setting up a server on an old computer (Dell Dimension probably with Pent4 or similar processor and about 1 GB of RAM to back up files with ssh) with lubuntu, and i was wondering what the best choice of backup of these important files would be?

I don't want to use an online service to back it up, so the real question is if I should get 2 large hard drives (1-2 TB) for it.

The other problem is that it may just be too old and unreliable for this sort of thing. So here is what my setup would be:

Pentium 4 at 2.0 GHz

1 GB of RAM

2 120-GB hard drives, 1 for backup IDE (my laptop has a 75 GB hard drive and there are some other files I would want to add)

400 watt TT PSU or 250 watt unreliable PSU

ATX Case

Does anyone have a setup like this that is working well for them? Is this a good idea or should I upgrade my CPU to use SATA and RAID(1-0)? What do other people with older home servers think?

What is the very oldest a "fast" home server with lubuntu or another light distro should be, as a practical question?

I AM NOT ASKING "could be", because that is a non-question. :)

Thank you for your generous help.


Source: (StackOverflow)

Live Disk with Persistance: Missing Operating System

I will try to narrow down my questions because I realize this topic is super broad.

I'm trying to create a Linux bootable USB disk with persistence for the most recent version of Lubuntu (14.10). I've done this many times in the past. To my recollection, it's been finicky at best, but I've always managed to get it to work.

Creating a bootable disk seems simple enough. I used Universal USB Installer, Linux Live USB Creator, and UNetBootin on Windows and used UNetBootin and the standard Ubuntu Disk Creator on Linux. Despite using a multitude of tools, when I boot to the USB, I get the message:

Missing Operating System.

I can confirm this on multiple computers that I know have a BIOS properly configured to read from the USB. Like I said, I've done this before, so I mildly know what I'm doing.

So this experience creates a lot of questions for me:

What am I doing wrong?

I'm trying to write to a 4GB SanDisk Cruzer which, albeit is ~ 1 year old, should work fine. The disk has been formatted by the respective programs and I also partitioned the USB using a disk utility.

What should I try next?

Are there ways to check the integrity of a bootable USB? Can it be repaired so I don't have to go through the process over again?

Are there boot flags that should be checked? Can I get more verbose output as to why the USB won't boot?

Any suggestions on this topic would be greatly appreciated.


Source: (StackOverflow)

Having trouble logging onto my ssh server

I feel pretty dumb asking this but I have been working on this for a couple days now (on and off) and I cannot figure it out. I have just installed lubuntu on my machine and I can ssh locally onto it using localhost and password authentication and I can ping it from two other machines fine. I try to ssh from either of those machines and it continues to fail to authenticate with my password.

I have re-installed openssh-server a couple times and I just cannot seem to figure it out.

Does anyone have a suggestion about what the problem might be?

New Info:

I have created a new user just to make sure it was not user related and the new user could not login either.

Here is the output of ssh -vv cusername@fable:

ssh -vv cusername@fable
OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to fable [192.168.1.76] port 22.
debug1: Connection established.
debug1: identity file /home/susername/.ssh/identity type -1
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/susername/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/susername/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version 1.00
debug1: no match: 1.00
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu7
debug2: fd 4 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: kex_parse_kexinit: diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa
debug2: kex_parse_kexinit: aes128-cbc
debug2: kex_parse_kexinit: aes128-cbc
debug2: kex_parse_kexinit: hmac-sha1,hmac-md5
debug2: kex_parse_kexinit: hmac-sha1,hmac-md5
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug2: dh_gen_key: priv key bits set: 132/256
debug2: bits set: 506/1024
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host 'fable' is known and matches the RSA host key.
debug1: Found key in /home/susername/.ssh/known_hosts:3
debug2: bits set: 528/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/susername/.ssh/identity ((nil))
debug2: key: /home/susername/.ssh/id_rsa (0x219e2358)
debug2: key: /home/susername/.ssh/id_dsa ((nil))
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/susername/.ssh/identity
debug1: Offering public key: /home/susername/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/susername/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
cusername@fable's password: 
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
cusername@fable's password: 
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
cusername@fable's password: 
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,password).

Here is my iptables:

sudo iptables -L
[sudo] password for susername: 
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination    

Here is my nmap from remote machine to the server in question: nmap -P0 192.168.1.76

Starting Nmap 5.00 ( http://nmap.org ) at 2012-07-24 23:32 CDT
Interesting ports on fable (192.168.1.76):
Not shown: 997 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
80/tcp  open  http
443/tcp open  https

Nmap done: 1 IP address (1 host up) scanned in 1.58 seconds

cat /etc/ssh/sshd_config

# Package generated configuration file
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

Then I copied back the sshd_config.factory-default to sshd_config and had the same issues of it not accepting my password.

UPDATE:

I gave up. It seemed like it was some issue with lubuntu but it was probably something screwy that I did. I ended up installing linux-mint on there instead and everything was working flawlessly. Who knows... I really like linux-mint though!


Source: (StackOverflow)

Not getting 1366x768 screen resolution in LUbuntu installed as a guest on VirtualBox

My laptop supports 1366x768 resolution but, even after installing Guest Additions on my lubuntu-11.10-alternate-i386 virtual machine I have as available resolutions only (from xrandr):

   1024x768       60.0 +   60.0  
   1600x1200      60.0  
   1440x1050      60.0  
   1280x960       60.0  
   800x600        60.0* 
   640x480        60.0  

Source: (StackOverflow)

How do I reset corrupted pcDuino to its initial state?

I updated Lubuntu 12.04 in pcDuino v1, but it was my mistake, since it is not capable of running versions beyond 12.04. After that it crashed and I restarted pcDuino and it stopped here showing the following output:

enter image description here


Source: (StackOverflow)

Can I keep firefox running in the background?

I'd like to keep Firefox running in the background for quick opening of new windows (on Lubuntu with i3). Is this possible by changing settings, installing extensions, etc.?


Source: (StackOverflow)