Feed aggregator

A tiler that tiles windows in a Mondrian/chaotic kind of way? Does such a thing exist?

LinuxQuestions.org latest posts - Fri, 11/25/2016 - 05:07
I was wondering if there might be any dynamic tiling window managers around that don't base their tiling mechanics on a rigid grid or scheme but in a way much like a Morindian painting, perhaps based on the sizes of individual windows or by means of pre defining window sizes for specific applications? And perhaps movable and resizable with a mouse? Preferrably in such a way that the surrounding windows automatically adjust their size to the resized window, or move out of the way of the window being moved? Does such a window manager even exist? If not, would it be possible to accomplish this with scripts and wmctrl, wmutils, etc, and could someone supply me with examples? Or if a complete script that accpmplishes what I'm thinking of exists, would you please point me to it? Thanks ahead and have a great Thanksgiving night.

[SOLVED] User Agent Switcher for Sea Monkey

LinuxQuestions.org latest posts - Fri, 11/25/2016 - 04:52
I'm trying to make these instructions work so I'll have the Slack logo.

I'm following these instructions here in this link.


I've changed the string twice and it's still not working.

This is what I had-
Code: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 I changed it to:
Code: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 Slackware64/14.2 I tested it and checked here:

Any ideas?

LXer: 8 Books Security Pros Should Read

LinuxQuestions.org latest posts - Fri, 11/25/2016 - 03:48
Published at LXer:

Calling all infosec pros: What are the best books in your security library? On a second thought, let's take a step back. A better question may be: Do you have a security library at all? If not, why?


SSH to a computer behind a DD-WRT router

LinuxQuestions.org latest posts - Fri, 11/25/2016 - 02:58
I want to remotely SSH into my home LAN server from anywhere outside the home.

I am using a recent beta of DD-WRT on an Asus RT-AC66U.

The ISP has provided me a static IP address. I am using SSH key pairs with a pass phrase. The public keys have been copied to the server and router.

I configured the router to allow remote access SSH using port 2387.

I configured port forwarding in DD-WRT:

static.public.ip.address WAN port 3498 -> static.private.server.address port 22

My ~/.ssh/config file looks like this:

Code: Host remote_router
  HostName static.public.ip.address
  Port 2387
  User root
  IdentityFile ~/.ssh/remote_router
Host remote_server
  HostName static.public.ip.address
  Port 3498
  User abcd
  IdentityFile ~/.ssh/remote_server The two configurations are similar, using different WAN side ports and key-pairs. The first configuration connects successfully to the router. The second is supposed to connect to the LAN server using port forwarding in the router.

I can SSH directly into the router using the static public IP address. Smooth as silk. The direct router connection affirms no problems with NAT or the public IP address.

The LAN server connection attempt always times out. Using the SSH verbose option does not help.

The DD-WRT logs show me connecting directly to the router. The logs show nothing when attempting to connect to the LAN server through port forwarding.

Disabling the DD-WRT firewall has no effect.

Running nmap -Pn -p 2387 static.public.ip.address shows the port is open. Running nmap -Pn -p 3498 static.public.ip.address shows the port is filtered. Perhaps this means DD-WRT is not actually forwarding the port.

The ISP is not filtering or blocking ports.

Despite the security concerns, as a quick proof-of-concept I temporarily configured a PPTP VPN. I connected directly to my LAN, again affirming no problems with the public IP address. I eventually will configure OpenVPN, but I still want the SSH option as well.

I do not want to use a third system and reverse SSH.

I have looked at many online posts about this topic. At the moment I am stumped.

I appreciate any help from somebody who uses DD-WRT and can SSH successfully to a computer behind the router. I am hoping I am missing something obvious.

Thanks. :)

The DD-WRT iptables rules show the following:

Code: Chain FORWARD (policy ACCEPT)
target    prot opt source              destination       
ACCEPT    tcp  --  anywhere            lan.server            tcp dpt:ssh
ACCEPT    udp  --  anywhere            lan.server            udp dpt:ssh That would seem to indicate the router should be forwarding the port.

making DB queries from Linux to windows using python pyodbc

LinuxQuestions.org latest posts - Fri, 11/25/2016 - 02:01
Hello Guys, im a real newbie in this, but however, what im trying to do is i want to connect to a DB in a windows machine from my linux Opensuse13.2, using python pyodbc. below is my code :

Code: pyodbc.connect('DRIVER={SQL Server};SERVER=servername;DATABASE=dbname;UID=userid;PWD=password') the exact error i got was as below : pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'SQL Server' : file not found (0) (SQLDriverConnect)")

and below is my odbcinst.ini file :

Code: [Easysoft ODBC-SQL Server]

[Easysoft ODBC-SQL Server SSL]
UsageCount=2 please help me to sort this out.Please assist me to find the root cause. please do let me know what information you need from me that will help to find the root cause

Learning cron : CentOS7 : anacron and cron

LinuxQuestions.org latest posts - Fri, 11/25/2016 - 01:50
Both anacron and cron are up, but in sleep at this point:

Code: [user1@server1 cron.hourly]$ ps aux | grep -i anacron
root      4261  0.0  0.0 123308  740 ?        Ss  12:01  0:00 /usr/sbin/anacron -s
user1    5084  0.0  0.0 112648  948 pts/0    R+  12:24  0:00 grep --color=auto -i anacron
[user1@server1 cron.hourly]$ ps aux | grep -i crond
root      1331  0.0  0.1 126332  1660 ?        Ss  11:42  0:00 /usr/sbin/crond -n
user1    5089  0.0  0.0 112648  948 pts/0    R+  12:24  0:00 grep --color=auto -i crond From man anacron page"
      Anacron  is  used  to  execute  commands periodically, with a frequency
      specified in days.  Unlike cron(8), it does not assume that the machine
      is  running  continuously.  Hence, it can be used on machines that are
      not running 24 hours a day to control regular jobs  as  daily,  weekly,
      and monthly jobs.

      Anacron  reads  a  list  of jobs from the /etc/anacrontab configuration
      file (see anacrontab(5))
.  This file contains the  list  of  jobs  that
      Anacron  controls.  Each job entry specifies a period in days, a delay
      in minutes, a unique job identifier, and a shell command.

      For each job, Anacron checks whether this job has been executed in  the
      last  n  days, where n is the time period specified for that job.  If a
      job has not been executed in n days or more,  Anacron  runs  the  job's
      shell command, after waiting for the number of minutes specified as the
      delay parameter.

      After the command exits, Anacron records the date (excludes  the  hour)
      in  a  special timestamp file for that job, so it knows when to execute
      that job again. And from man cron page:

.......In case systemd is enabled, then  unit  file
      is  installed  into  /lib/systemd/system/crond.service  and  daemon  is
      started by systemctl start crond.service command.  It  returns  immedi‐
      ately,  thus, there is no need to need to start it with the '&' parame‐

      Cron searches /var/spool/cron for crontab files which are  named  after
      accounts in /etc/passwd; The found crontabs are loaded into the memory.
      Cron also searches for /etc/anacrontab and any files in the /etc/cron.d
      directory,  which have a different format (see crontab(5)).  Cron exam‐
      ines all stored crontabs and checks each job to see if it needs  to  be
      run  in  the  current  minute.  When executing commands, any output is
      mailed to the owner of the crontab (or to the  user  specified  in  the
      MAILTO  environment  variable in the crontab, if such exists).  Any job
      output can also be sent to syslog by using the -s option.
Since cron and anacron also checks /etc/anacrontab,
Q1: How do they resolve not executing /etc/anacrontab twice?

Q2: I am not able to find how anacron was started using: systemctl --all.

How do I find out how anacron was started and by who?
man anacron did not help much.


LXer: Get emotional: Tips for open source communities

LinuxQuestions.org latest posts - Fri, 11/25/2016 - 01:48
Published at LXer:

Technology is social before it's technical.*—Gilles DeleuzeHumans are driven quite a bit by emotions. You may be a rational human being, but your emotions will still drive many of your choices. You can be excited, angry, interested, or sad about things—it doesn't matter—you'll react to those emotions and you'll very often leak that into your communications.read more


LXer: Ubuntu to Reject SHA-1-Signed Repos by Default in APT Starting January 1, 2017

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 23:51
Published at LXer:

Debian developer and Ubuntu member Julian Andres Klode announced that he plans on turning off SHA1 support for APT repositories starting January 1, 2017.


LXer: The open source Vulkan driver for AMD 'radv' continues improving at a rapid pace

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 22:09
Published at LXer:

As always, I am massively impressed with the progress the Mesa developers have made. The open source Vulkan driver 'radv' has continued to evolve recently.


Leftovers: Software

tuxmachines.org - Thu, 11/24/2016 - 22:05
  • Qt 5.9 Planning For Feature Freeze, Other Changes

    While Qt 5.8 hasn't even been released yet, there is already release planning that is happening around Qt 5.9.

    Qt 5.8.0 isn't going to be released until the beginning of January due to the latest delays hampering the release. There is now a thread on the Qt mailing list simply entitled Qt 5.9. The Qt 5.9 plans being talked about are to do a feature freeze in early 2017, as soon as 1 February. They would be sticking hard to the feature freeze date to try to avoid any delays holding back the 5.9.0 release.

  • Darktable 2.2 Being Prepared For Release With Many Changes

    This week marks the Darktable 2.2.0-RC1 release as the developers of this open-source photography workflow software prepare for its official release, just in time if you are planning to get some new camera gear this holiday season.

    Darktable 2.2 is a big release even though Darktable 2.0 was great -- more than two thousand commits have gone into this 2.2 development code thus far.

  • Linux Users Unhappy as Adobe Flash Player keeps NPAPI architecture

    Adobe has announced that they will be continuing to support the NPAPI architecture for the Linux version of Flash in 2017 as well. This was not a decision embraced by everyone, as some Linux users voiced their complaints across the online medium.

  • SQL Server on Linux: Runs well in spite of internal quirks. Why? [Ed: Anderson pushes for Windows layer (back doors) on top of GNU/Linux which is what SQL Server technically requires. It's not really a Linux port.]

read more

SitePoint on FOSS

tuxmachines.org - Thu, 11/24/2016 - 22:01
  • Groovy, an Open Source Success Story

    Apache Groovy is a multi-faceted general purpose programming language for the Java platform. While primarily an object-oriented language with many dynamic language features, it also supports functional programming, static type checking and static compilation. This article looks at some interesting aspects of Groovy’s history and some of the significant guiding principles which help keep it a vibrant open source project.

  • The Conventions of Contributing to Open Source

    We all love using open source, right? I have done my fair share of contributing to open source, mainly through small contributions here and there. I’ve tried to open source some libraries in the past, with varying levels of success and failure. I would say I am somewhere in the middle on the Contributor’s Spectrum. There are those that do much more and those that do much less.

  • How Open Sourcing Bootstrap Made It Huge

    Teaching and learning from each other and building awesome stuff as a result of open communication and collaboration lie at the heart of the open source philosophy. Bootstrap certainly stands out as one of the most successful instances of the open source approach, which has made it what it is today.

read more

Pinebook is a Linux laptop with an ARM CPU for $89 and up

tuxmachines.org - Thu, 11/24/2016 - 21:33

Pine64 launched a single-board computer called the Pine A64 last year. It features an Allwinner A64 ARM Cortex-A53 processor and sells for $15 and up.

Now the company has introduced a laptop that uses the same processor and supports just about any Android or Linux-based software that can run on the Pine A64,.

The laptop is called the Pinebook, and there are two options available: an $89 version with an 11.6 inch display or a $99 model with a 14 inch screen.

read more

Linux Graphics

tuxmachines.org - Thu, 11/24/2016 - 21:13

read more

Games for GNU/Linux

tuxmachines.org - Thu, 11/24/2016 - 21:06

read more

Concatenate string through variable in awk

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 21:05

input.tab (pipe-separated):
Code: DATE|PRODUCTS|Customer_A|Customer_B|Customer_C
$1: Transaction date

$2: describe the order of the different type of products separated by ":" (change from one record to another)

$3-$NF: Customer transactions.
. Each type of products are separated by ":" and are described in $1
. Numbers at the left and right of the comma are the "purchased" and "sold" items respectively

For example, the 01Jan Customer_A:
- purchased 0 meat, 21 fruits, 3 dairies
- sold 4 meat, 8 fruits, 55 dairy

But the 02Jan Customer_A:
- purchased 12 fruits, 1 meat, 432 other
- sold 0 fruit, 34 meat, 9 other

OBJECTIVE: for each date, count the number and list the name(s) of customers who sold fruits, and append the original line:
Code: Number_Customer|Customers|DATE|PRODUCTS|Customer_A|Customer_B|Customer_C
2.00|Customer_A_(21,8); Customer_B_(34,2)|01Jan|meat:fruit:dairy|0,4:21,8:3,55|90,123:34,2:54,111|0,0:1,0:0,12
Code: gawk '
        for(j=3; j<=NF; j++){
        print "Number_Customer|Customers" FS $0

        # Identify the "fruit" data in FORMAT

        for(i=1; i<=a; i++){
                if(b[i] ~ /^fruit$/){

        # Extract sold fruit (i.e. number on the right of the comma) in each "Customer_X" fields
        # Concatenate Customers in variable "string"
        for(j=3; j<=NF; j++){
                if(d[2] > 0){
        # Print fields
                print "0.00" FS "-" FS $0
}' input.tab With this code I get the following output. The Customer names are wrong (it keeps only the last one of the loop), and I have extra ";"
Code: Number_Customer|Customers|DATE|PRODUCTS|Customer_A|Customer_B|Customer_C
1.00|;;;Customer_C_(32,56)|02Jan|fruit:meat:other|12,0:1,34:432,9|134,0:322,3:45,0|32,56:54,0:654,0 I don't get why in $2 the customer names are wrong but the figures are correct.
Probably because the NR==1 block keeps the last iteration of the loop...

[SOLVED] apt-get - find out which package is requiring installations on upgrade

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 21:02
When I try to upgrade it wants to install the boost run time libraries. I would like to figure out which package wants them so I can remove it.

I was thinking of using --only-upgrade. Is there a smarter way? If I use --only-upgrade will it ignore the package with the dependency, or still try to upgrade it, resulting in a broken package?


LinuxQuestions.org latest posts - Thu, 11/24/2016 - 20:52
Dear sir/Mrs.

I use the Red-Hat 6.2 on an 4 cores of Intel. The IDE is Eclipse.
The code is:
std::string filename_str;
FILE * fp ;

fp = fopen ( file_name_str.c_str() , "a+" ) ;
if (fp==NULL)

cout << " Error in openingfile" ;

in run-time the file is created. the value of fp is not null. However, the if statement is executed and the cout statement works.

Best regards,

Slackware 14.2: by hand installation and configuration (i.e. without setup)

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 20:35

I would like to install Slackware 14.2 without the help of the setup program (using only installpkg --root).
And after the installation, I would like to replicate the configuration that is normally made by setup.
1. Please note that I'm seasoned user and I basically only need to replicate what the setup does.
2. Please note I won't install X nor any GUI applications.
3. Please note that I'm not asking for any post-install configuration steps.

I went through the installer files and tried to analyze what's there.
I came up with the following, quite possibly, incomplete list:
  • configure and install the bootloader
  • add entries in /etc/fstab
  • add entries in /etc/hosts and /etc/HOSTNAME
  • set root password
  • add entries in /etc/rc.d/rc.inet1.conf
  • optionally configure /etc/rc.d/rc.keymap, /etc/rc.d/rc.gpm and /etc/rc.d/rc.font
  • enable/disable desired services through /etc/rc.d/
  • copy one of /usr/share/zoneinfo/* > /etc/localtime + /etc/localtime-copied-from
  • write UTC > /dev/hardwareclock for having UTC configured time

Please let me know of any missing bits.
There are surely going to be some, i.e. I couldn't find anything about setting the UTC time, I just remembered that setup does it.

Thanks in advance!

Best regards,
Andrzej Telszewski

LXer: How to install and use 7zip file archiver on Ubuntu Linux

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 20:03
Published at LXer:

If you are a Microsoft Windows user, and your work involves sending/receiving large files over network, there's quite a possibility that you'd have at-least heard of (if not used) the 7zip tool. For those who aren't aware, 7zip is an award-winning, open-source file archiver that is claimed to have "a high compression ratio.". In this article, we'll discuss how to install and use p7zip in Linux.


LXer: Making open source fashionable

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 18:15
Published at LXer:

In March 2015, the leadership of Berlin-based Zalando gathered the company's entire tech team in a hip underground techno club (it's Berlin, after all) and announced a new way of working—something called "Radical Agility." Inspired by Daniel Pink's Drive, Brian Robertson's Holacracy system and the agile movement, Radical Agility emphasizes Drive's call for autonomy, mastery and purpose as the pillars of the company's tech strategy and culture.read more

Syndicate content