LinuxQuestions.org latest posts

Syndicate content LinuxQuestions.org
LinuxQuestions.org offers a free Linux forum where Linux newbies can ask questions and Linux experts can offer advice. Topics include security, installation, networking and much more.
Updated: 29 weeks 6 days ago

LXer: ALT Linux 8.1 Workstation Released with Linux Kernel 4.4.34, MATE and KDE Desktops

Sat, 11/26/2016 - 07:18
Published at LXer:

On Thanksgiving day, BaseALT Ltd, through Michael Shigorin, proudly announced the release and general availability of the ALT Linux 8.1 Workstation distribution aimed for personal and corporate desktop use.

Read More...

How do I get linux to actually shutdown and turn off the PC?

Sat, 11/26/2016 - 07:04
I'm using linux mint xfce

When I tried the livedisk and even on install I always briefly saw something about ACPI. And because it always locked up on me, I made sure to disable ACPI in the BIOS and as the option when installing Mint (I also used nomodeset option as I read that causes lock ups also).

Doing that helped me install Mint succesfully and it works great.

But I'd like to have Mint turn off my PC when I tell it to shutdown, but instead it does some "halt.." or something and requires me to turn off the power manually.

Is there anyway to get this fixed? I'm worried if I turn on ACPI in the BIOS or try to install it somehow, which i think might be required for this fix, that Mint will lockup on me constantly like it did with the livecd or when i tried to install it originally.

Right Click for stylus - on old tablet pc (pre ipad days)

Sat, 11/26/2016 - 06:56
I have a tablet pc (from 2005/6 before the iPad) and it uses a stylus (no touchscreen). The stylus works like a mouse fine in linux, click, holding the button then tapping does a right click, eraser works like the mouse (which is how Windows XP 2005 Tablet PC Edition did it - it only picked up the eraser to work differently in some programs).

Anyway a few things I'm missing on this old Acer Travelmate C200.
  • Holding the stylus down for 2 seconds makes a circle grow and when complete it takes it as you want to right click
  • being able to push/scroll the screen with a flick of the pen

I forgot to test the screen rotation also (its a button on my tablet, I'm thinking it is just hardware based, but not sure.

Anyway I know not many people have these type of tablets as they were only out there for a few years before the iPad killed them off and touchscreen was decided the way to go, once Apple showed a better way to handle the UI.

Does anyone know of anyway to get a right click by holding the pen down for awhile? I know I can hold the button on the side of the pen and tap the pen on the screen but its just handier to just hold it most of the time.

Also do you know of anything that will let you just flick to scroll through textboxes or browsers or other windows?

For firefox I use "Toggle Grab and Drag mode" on WinXP as IE was originally one of few apps that did it natively w the stylus.

I've only tested on Linux Mint, so far.

Thanks

Postfix - fix "Your MX supports plain text auth"

Sat, 11/26/2016 - 06:46
So for reasons I have been required to submit an audit of my Postfix server using the site http://emailsecuritygrader.com . At the moment, I am receiving an 85%, with the following error being the one needing fixing:

Code:
Why are we testing it?

A mail exchange server is more vulnerable to abuse if the system is not configured to a) authenticate and verify local users before allowing them to submit messages to the SMTP server, and b) to encrypt the login criteria using a Secure Socket Layer (SSL) connection between the mail client and the server.

Risk factors:

Spammers can potentially hack users' accounts by collecting passwords that are transmitted to the server in clear text via PLAIN or AUTH LOGIN mechanisms.

What are we testing?

This test attempts to connect to the mail server on ports 25 and 465. For each connection it checks the list of available authentication (AUTH) methods.

The server will receive the lowest score if PLAIN or AUTH LOGIN are supported on port 25. The highest score is awarded if SMTP SSL is enabled, and the PLAIN and AUTH LOGIN mechanisms are not available on port 25. Note that if AUTH is not supported, your MX passes the test as plain text passwords cannot be sniffed.

        Your MX(s) supports plain text AUTH Here is my /etc/postfix/master.cf :

Code: smtp    inet  n      -      n      -      -      smtpd
  -o smtpd_sender_restrictions=check_sender_access,hash:/etc/postfix/unauth_sender_access
  -o cleanup_service_name=$msa_cleanup_service_name
  -o smtpd_sasl_auth_enable=no
  -o smtp_sasl_auth_enable=no
submission    inet  n      -      n      -      -      smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_security_level=encrypt
  -o smtpd_enforce_tls=yes
  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_sender_restrictions=permit_sasl_authenticated,reject
#  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
  -o smtpd_reject_unlisted_recipient=yes
  -o milter_macro_daemon_name=ORIGINATING

msa_cleanup    unix    n      -      n      -      0      cleanup
        -o header_checks=$msa_header_checks
        -o body_checks=$msa_body_checks

#smtp      inet  n      -      n      -      -      smtpd
#smtp      inet  n      -      n      -      1      postscreen
#smtpd    pass  -      -      n      -      -      smtpd
#dnsblog  unix  -      -      n      -      0      dnsblog
#tlsproxy  unix  -      -      n      -      0      tlsproxy
#submission inet n      -      n      -      -      smtpd
#  -o syslog_name=postfix/submission
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
465    inet  n      -      n      -      -      smtpd
#  -o syslog_name=postfix/smtps
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628      inet  n      -      n      -      -      qmqpd
pickup    unix  n      -      n      60      1      pickup
cleanup  unix  n      -      n      -      0      cleanup
qmgr      unix  n      -      n      300    1      qmgr
#qmgr    unix  n      -      n      300    1      oqmgr
tlsmgr    unix  -      -      n      1000?  1      tlsmgr
rewrite  unix  -      -      n      -      -      trivial-rewrite
bounce    unix  -      -      n      -      0      bounce
defer    unix  -      -      n      -      0      bounce
trace    unix  -      -      n      -      0      bounce
verify    unix  -      -      n      -      1      verify
flush    unix  n      -      n      1000?  0      flush
proxymap  unix  -      -      n      -      -      proxymap
proxywrite unix -      -      n      -      1      proxymap
smtp      unix  -      -      n      -      -      smtp
relay    unix  -      -      n      -      -      smtp
#      -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq    unix  n      -      n      -      -      showq
error    unix  -      -      n      -      -      error
retry    unix  -      -      n      -      -      error
discard  unix  -      -      n      -      -      discard
local    unix  -      n      n      -      -      local
virtual  unix  -      n      n      -      -      virtual
lmtp      unix  -      -      n      -      -      lmtp
anvil    unix  -      -      n      -      1      anvil
scache    unix  -      -      n      -      1      scache I've tried every way to disable auth on port 25 ("smtp" in the master.cf), so I don't know why this test is still saying it is still available?

So Xubuntu Lubuntu install codecs now?

Sat, 11/26/2016 - 06:12
I tried out Xubuntu (wow, not sure what it is but it looks better than MacOS), Lubuntu (very nice) and Mint xfce.

I know years ago I read Linux Mint gives you flash and other codecs, but when I tried to install Lubuntu and Xubuntu (it took me awhile before I realized why they all 3 locked up) I noticed they all had options to install codecs and stuff.

So with that in mind, has Mint lost its uniqueness?

Why can't compress files into target directory?

Sat, 11/26/2016 - 05:52
Code: pwd
/home/debian8
rar a  /tmp/imitation.rar  /home/imitation

RAR 4.20  Copyright (c) 1993-2012 Alexander Roshal  9 Jun 2012
Trial version            Type RAR -? for help

Evaluation copy. Please register.

ERROR: Bad archive /tmp/imitation.rar

rar a  imitation.rar  /home/imitation

ls  /home/debian8
imitation.rar rar command can compress files into current directory.
Code: rar a  imitation.rar  /home/imitation
#execute rar command can't compress files into target directory,
Code: rar a  /tmp/imitation.rar  /home/imitation
#can't execute Why?

LXer: An Everyday Linux User Review Of Q4OS 1.8.1

Sat, 11/26/2016 - 05:47
Published at LXer:

Q4OS is a light weight Linux distribution which looks much like Windows of old. Don't let that put you off however as it is easy to install and easy to use with all the major top applications catered for.

Read More...

After slackpkg upgrade-all startx fails with libXfont2.so.2 error

Sat, 11/26/2016 - 05:39
RPI3, Slackware ARM current.

After a couple, maybe 3-4 weeks I did the slackpkg update and then slackpkg upgrade-all and there was a fair amount of stuff but no errors or anything.

After logging in as regular user and typing startx I get:
Code: /usr/libexec/Xorg: error while loading shared libraries: libXfont2.so.2: Cannot open shared object file: No such file or directory
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error I've checked and the file doesn't exist anywhere on the system and Google isn't being much help.

I can ssh -Y in and get a firefox or thunar window but startx is dead. I tried a reinstall of all the xfce packages and also tried startx as root with the same (non-) results

What have I borked this time?

Install mysql qiery browser Ubuntu

Sat, 11/26/2016 - 05:11
Install mysql query browser. Pretty new to linux. I have Ubuntu 16.04 installed on two machines. One I purchased from Dell. The other I installed on a new hard drive. Mysql query browser is a no longer supported program that can still be used. I feel comfortable with it. Installed on the Ubuntu system on the separate hard drive and it seems to be working fine. I tried inbstalling it on the Dell with not so successful results. I tried using something called WINE on the Dell. The interface is tiny and so are the fonts. I'm not sure what I did on the separate hard drive but don't think I'm using WINE. It works on the Dell but is hard to see. Any ideas

LXer: How to manage multiple WordPress sites from a single place using the MainWP plugin

Sat, 11/26/2016 - 03:33
Published at LXer:

In this tutorial, we will show you how to install two WordPress instances on separate virtual servers with Ubuntu 16.04 OS and Apache, PHP and MySQL installed on them, and how to manage them from a single place using the MainWP WordPress plugin.

Read More...

Claws-Mail Segmentation Faults

Sat, 11/26/2016 - 02:49
After months of trouble-free use, Claws-Mail has started to segfault on Mint 17 on my Zareason Strata laptop.

One thing I should point out it that I am currently stranded at my brother's place because of car trouble, and he has very slow wireless internet, because he lives in a rural area with no wired internet service. It's so slow that I have not been able to send an email from Claws; Claws errors on send. I have to log into webmail to send, though not to receive.

Nothing else has changed.

Here's some information about my system:

Code: $ uname -a
Linux barracuda 3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:42:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17.1
$ claws-mail -v
Claws Mail version 3.9.3 All updates have been consistently applied to my install.

I have no clues. Does anyone have one to share?

PyQt4

Sat, 11/26/2016 - 01:54
hi
I an trying to get a global variable(string) to display in a textbox using PyQt4 it works in a script but not in an object orientened fashion

This is the problem line of code
Code:
textbox = QtGui.QLineEdit(self, glogal_variable)
textbox.move(100,100) This is the error
Code: TypeError: argument does not match any overload call Thank you for your help

LXer: Want to Know if the Election was Hacked? Look at the Ballots

Sat, 11/26/2016 - 01:37
Published at LXer:

Let me set the record straight about what I and other leading election security experts have actually been saying to the campaign and everyone else who’s willing to listen.

Read More...

pulse audio volume defaults

Sat, 11/26/2016 - 01:30
Slackware 14.2: How do I set pulse audio default volume levels for user & system?

LXer: A look at PyCharm - The Best Python IDE For Linux

Fri, 11/25/2016 - 23:33
Published at LXer:

PyCharm is an IDE brought to you from the same people that create IntelliJ and Resharper. It is possibly the best Python IDE available for Linux with intellisense, code refactoring and debugging options.

Read More...

sd# device files from one boot to another

Fri, 11/25/2016 - 23:22
If I boot from a live USB image for an install can I count on the devices listed in the install menu to be the same as they are on the existing system? For instance, if /dev/sda1 is mounted at / & /dev/sdc is mounted on /home/me can I count on the same devices names (sd#) to be pointing at the same physical drives in the install menu as they are on my desktop when booted into it's native OS?

Print number of files in working directory

Fri, 11/25/2016 - 23:15
Hi, I'm a complete newbie here, sorry about that. This code doesn't impress anyone but what this program does is count files, symbolic links and directories. What I can't make work is getting the program to count only in the working directory when I give the program one of the options: either -f, -L or -d.

Any help would be highly appreciated.



Code: #!/bin/bash

usage () {
        echo "$PROGNAME: usage: $PROGNAME [-f file | -L Link | -d]"
        return
}

tell () {
        antall_filer=$(find $1 -type f | wc -l)
        antall_symblenker=$(find $1 -type l | wc -l)
        antall_kataloger=$(find $1 -type d | wc -l)
        return
}

skriv () {
        if [ -z $1 ]; then
                echo "Resultat i arbeidskatalogen: " $antall_filer filer, $antall_symblenker symbolske lenker, $antall_kataloger kataloger, totalt $(($antall_filer+$antall_symblenker+$antall_kataloger))
        elif [ $1 == -f ]; then
                echo "Antall filer i $2: $antall_filer filer"
        elif [ $1 == -L ]; then
                echo "Antall symbolske lenker i $2: $antall_symblenker symbolske lenker"
        elif [ $1 == -d ]; then
                echo "Antall kataloger i $2: $antall_kataloger kataloger"
        else
                echo "Resultat i $1: " $antall_filer filer, $antall_symblenker symbolske lenker, $antall_kataloger kataloger, totalt $(($antall_filer+$antall_symblenker+$antall_kataloger))
        fi
        return
}

PROGNAME=$(basename $0)

opsjoner=
kataloger=

if [[ -z $1 ]]; then

        tell
        skriv
 else
        while [ $# -gt 0 ]; do
                case $1 in
                        -f)                        opsjoner=-f
                                                ;;
                        -L)                        opsjoner=-L
                                                ;;
                        -d)                        opsjoner=-d
                                                ;;
                        -h)                        usage
                                                exit
                                                ;;
                        *)                        kataloger="$@"
                                                break
                                                ;;
                esac
                shift
        done

        for katalog in $kataloger; do
                tell $katalog
                skriv $opsjoner $katalog
        done
fi

WiFi problem

Fri, 11/25/2016 - 22:51
Hello,

I have recently installed Dragora on my laptop (easily thanks to the installation guide) however WiFi is not working. How can I fix that ?

Here are the lspci infos about my WiFi card :

24:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
Subsystem: Hewlett-Packard Company Device 145c
Flags: bus master, fast devsel, latency 0, IRQ 19
Memory at d4400000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [58] Vendor Specific Information: Len=78 <?>
Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [d0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Virtual Channel
Capabilities: [160] Device Serial Number 00-00-7a-ff-ff-3d-20-10
Capabilities: [16c] Power Budgeting <?>
Kernel driver in use: bcma-pci-bridge
Kernel modules: bcma

I would appreciate any help that you can provide.

LXer: Mickey Mouse Open Source, Close Call at WordPress, and More…

Fri, 11/25/2016 - 21:51
Published at LXer:

Also included: FBI hacks 8,000 with single warrant, new Cinnamon desktop release, "government-backed attackers" after journalists and FOSS Force adds beef to newsfeed.

Read More...

How to manage a multi-disk, multi-partition setup when migrating from XP to Linux?

Fri, 11/25/2016 - 21:32
Although this is my first post, I've had a system running Ubuntu server for 6+ months, as well as Linux distros on my laptop and netbook. Now I'm working on migrating my primary desktop running Windows XP to Lubuntu.

I've got Lubuntu installed and the dual-boot working. My "problem" is disk management... how best to migrate a mature, extensive, multi-disk and multi-partition XP setup to Linux. I have 16 partitions on 3 HDD's totaling 4TB. I'm trying to identify what can be migrated straight to Linux, what needs to remain available to both OS's, what will be Wine drives, etc. But I'm having trouble since I can't seem to visualize what the final Linux setup should look like.

All of the posts that I've found are for relatively simple configurations. And I think my issue is more theoretical/philosophical than the actual commands. I just can't visualize it for Linux. On my server I did have to add additional disks, but the needs there were very cut-and-dried. Even so, I still divided my HDD's up into 1TB partitions just out of paranoia.

So, for those of you who have multiple HDD's, how do you manage them? Do you let Linux manage the whole thing as a single partition? Do you chunk them up? If they don't need to be divided because of defrag, are there other reasons that still apply to Linux? With the latest disks is there still any practical/noticeable difference in performance between the beginning of the disk and the end? Does segregating data to minimize risk of corruption apply in Linux? Should Wine drives be on a separate partition?

All opinions welcome,

su

Additional details:

My disk management strategy has been old-school, ie, partition your spindles so you can take advantage of fast zones and put more static data in the slow zones, as well as having smaller sizes to defrag. I've also always adhered to "get as much off the system disk as you can" and have re-directed many of XP's default locations to other partitions. Years of running windows does leave one a little paranoid about data loss... and I've never had the funds to go for RAID.

My goal is to replace as much as I can with Linux native software and run some of the more critical XP software under Wine. Then I'd like to encapsulate the existing/remaining XP into a virtual machine. There is a lot of stuff installed and some of it won't migrate to Linux, or even newer Windows. If I can't encapsulate the XP then I'll leave the system as dual-boot since I can't risk losing complete access to some of this older stuff, and I don't always know what I need until the moment a specific need comes up. Also, I've got archived DVD's that require some of these programs.

I realize the existing XP installation needs to be "simplified" whether it is to be encapsulated or left as dual-boot, so I'm currently working on moving temp files and such back to the windows system disk.