Linux

66K

Solutions

33K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

Share tech news, updates, or what's on your mind.

Sign up to Post

I have a Linux shell script . I need to run cronjob so that script can run every 7 days.
I have another scripts run every hour in batch process
Final script should be run  every  25 minute in batch . Please let me know all setup in cronjob for three scenarios.

Thanks
Shaiukh
0
Active Protection takes the fight to cryptojacking
LVL 2
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

i have a text  file. it looks like:
==================================
person's name. ......................text....................................
person's name. ......................text....................................
person's name. ......................text....................................
person's name. ......................text....................................
person's name. ......................text....................................
person's name. ......................text....................................
person's name. ......................text....................................

==================================

how do i open the file of names of people in a cemetery and return the text that goes with  ONLY that name in perl?
the file is a list of about 3000 people and the text is when they died and where they are buried.  any language will do
this but i'm trying to learn perl in ubuntu.
0
it's happened to me on fedora, redhat, debian and somehow with a little effort i've gotten past these installation problems, but now playing with redhat
i'd expect it not to be an issue maybe cuz its a paid subscription.
who knows.

when installing software using the 'software' package installer, i click the little check which might indicate a selection is made, and click apply changes and it circles for a second
and then just sits there.

question a. is there anyway to force it to apply the changes NOW?  is this a thing? is it waiting for something (reboot)

sometimes it actually installes the package right then and there, other times it just does this

yet, other times, it asks for confirmation that you want to install the package and then fails

it's rhel client 7.3


sometimes i go to apt-get and/or yum or whatever, but this time --it's actually chrome i'm trying to install ... everything is failing

i tried uninstaiing and then reinstalling and that failed

-dj
0
Hello Everyone

How can I configure Linux wireless on a laptop to Not connect to public Wifi that has no password.?

Some of the commands I have been using need to have a SSID= to point to each Wifi network.
Is it possible to have only one SSID statement to point to all of them, similar to a wild card.
Example SSID=”*.*”

Example of what I currently have that can only point to one Wifi network.
edit /etc/wpa_supplicant.conf      
network={
  SSID=”CableWifi”  
  key_mgmt=NONE
  disable=1
}
0
Dear Experts, in Linux we have wondershaper tool to shape the network traffic.

Do we have another tool with the same function in Windows server 2012 environment?

We also would like to drop some traffic when its network bandwidth is higher than predefined rate. Can you please suggest?

Many thanks in advance!
0
I'm running a Samba Active Directory domain with Ubuntu 18.04 clients.

I used the This Guide  to map local groups to domain users. It involved editing the following files...

    root@testpc:~# cat /etc/security/group.conf | sed '/^#/d'

    *;*;*;Al0000-2400;dialout

Open in new window


    root@testpc:~# cat /usr/share/pam-configs/my_groups
    Name: activate /etc/security/group.conf
    Default: yes
    Priority: 900
    Auth-Type: Primary
    Auth:
            required                        pam_group.so use_first_pass

Open in new window


    root@testpc:~# DEBIAN_FRONTEND=noninteractive pam-auth-update
    root@testpc:~# 
    (I.e. no error...)

Open in new window


It seems to only work when I ssh as a domain user, but not when I  su - user  or do a local login (even though the local login is via the domain).
I.e. If I login via ssh as the user, the dialout group appears fine...

    rightmire@localPC:~$ ssh rightmire@remotePC
    Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-46-generic x86_64)

    (...snip...)

    68 packages can be updated.
    43 updates are security updates.

    rightmire@remotePC:~$ groups
    domain users dialout master BUILTIN+users 
    rightmire@remotePC:~$

Open in new window


But if I su - rightmire, it does not appear...
    root@remotePC:~# su - rightmire
    rightmire@remotePC:~$ groups
    domain users master BUILTIN+users domain admins denied rodc password replication group staff konstrukteure vicongroup h2t rightmire
    rightmire@remotePC:~$

Open in new window


...AND users who login locally, but are still logging in as a domain user, and not being added to the group.

[1]: https://i.stack.imgur.com/VWzwd.png
0
There are "Browser Isolation Software" on the market.
https://www.g2.com/categories/browser-isolation

I want to develop remote browser that works as proxy or works like RemoteApp.
How can I build such software with open source ?
Do they use Server Side Rendering ?

The components of the system is browser on Windows PC --> Linux(Web Browser) -->Internet.

Any advice welcome.
0
Hi Expert

I am encountered issued to create a repo ,when enter the following command "~]# yum install -y yum-utils createrepo"

Errors message show in the following;


There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
     subscription-manager repos --enable <repo>
 To enable custom repositories:
     yum-config-manager --enable <repo>
0
I have been running Ubuntu 14 with custom tcp tuning parameters for a couple years.  I applied, via puppet, all of the same tuning parameters, but on Ubuntu 18, my TCP Time Wait is very high.  What is the best method of finding the source of this high TCP Time Wait?  The process that is using the tcp connections is a java application.

Please let me know any other information I should provide.

Graph on the left is Ubuntu 18.04, right is Ubuntu 14.04

Thank you,

Reade
tcp-time-wait.png
0
I am using CentOS 6. I had PHP 5.x on my machine and I updated PHP 7.2 using a Blog: https://tecadmin.net/nstall-php7-on-centos6/

However after updating PHP 7.2 Apache doesn't show the output of the PHP file but it downloads the source file itself.

Command line shows PHP 7.2:

# php --version
PHP 7.2.17 (cli) (built: Apr  3 2019 10:16:22) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

Open in new window


#apachectl -M
Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_file_module (shared)
 authn_alias_module (shared)
 authn_anon_module (shared)
 authn_dbm_module (shared)
 authn_default_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 authz_owner_module (shared)
 authz_groupfile_module (shared)
 authz_dbm_module (shared)
 authz_default_module (shared)
 ldap_module (shared)
 authnz_ldap_module (shared)
 include_module (shared)
 log_config_module (shared)
 logio_module (shared)
 env_module (shared)
 ext_filter_module (shared)
 mime_magic_module (shared)
 expires_module (shared)
 deflate_module (shared)
 headers_module (shared)
 usertrack_module (shared)
 setenvif_module (shared)
 mime_module (shared)
 dav_module (shared)
 status_module (shared)
 autoindex_module (shared)
 info_module (shared)
 dav_fs_module (shared)
 vhost_alias_module (shared)
 negotiation_module 

Open in new window

0
Acronis Global Cyber Summit 2019 in Miami
 Acronis Global Cyber Summit 2019 in Miami

The Acronis Global Cyber Summit 2019 will be held at the Fontainebleau Miami Beach Resort on October 13–16, 2019, and it promises to be the must-attend event for IT infrastructure managers, CIOs, service providers, value-added resellers, ISVs, and developers.

I have a GlusterFS question. We have IBM CAM Pods attached to GlusterFS PVs.

The Heketi pod restarted and the persistent volume to the container dismounted.

We have the heketi-db-backup with the heketi.db but the heketi-start.sh gives back "Unable to extract backup database"

Any ideas?
0
xcp-ng center show nothing under management continer.
i have a coreos and 2 conrainers running in this os, but i can't see containers under container management on xcp-ng center (xen)
i have latest coreos and latest cxp-ng server "7.6".
0
Hi,

  compiling xerces on solaris box.
 
  /usr/lib/sparcv9/ and /usr/lib/64 have libicu*54.  
 
  In another location, /icu_needs_to_build_with/libicu*44.
 
  Whenver I compile, it's always picking libicu*54 version. I do want to build xerces with libicu*44 libraries.
 
  Do we have any flags like LDFLAGS or xyz to configure specific version shared libs?
 
 Thanks,
 Bvm.
0
Hi,
Can two machines in different subnet communicate ?
I have a machine1 - 10.42.1.192  
machine2 - 10.4.10.148
they are in different subnets.
machine2 is running a service which wants to sftp to machine1 (Sftp is running on port 22)
But the connection doesnt get established. Is there any way to achieve this.
Someway to allow sftp to be done to machine1 from machine2...
eg
1) we could create a user for machine1 sftp and passwrod using which we can connect to it from machine2
or any setup to be done on machine1 or machine 2 to allow this to happen


Thanks
0
Hi,
I want to add the following algorithms to my ssh and sftp server.
aes128-ctr hmac-sha1
As per my knowledege aes128-ctr is something related to encryption and
hmac-sha1 is related to authentication.
I have a sftp server running on a machine.
I want it to support these two.
Does it need to be added to sftp server ?
or ssh ?
The machine is having openSSH 7.9

My aim is that ultimately anyone connecting to the sftp server these two algorithms should be available..


Thanks
0
ESXi 5.5 host.  The datastore has vanished but the device is still there.  Local LUN.
The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
~ # fdisk -lu

***
*** The fdisk command is deprecated: fdisk does not handle GPT partitions.  Please use partedUtil
***

Found valid GPT with protective MBR; using GPT

Disk /dev/disks/mpx.vmhba32:C0:T0:L0: 62685184 sectors, 59.7M
Logical sector size: 512
Disk identifier (GUID): 1994f3d3-44e1-4628-88f5-5c2918a7dcbc
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 62685150

Number  Start (sector)    End (sector)  Size       Code  Name
   1              64            8191        8128   0700
   5            8224          520191        499K   0700
   6          520224         1032191        499K   0700
   7         1032224         1257471        219K   0700
   8         1257504         1843199        571K   0700
   9         1843200         7086079       5120K   0700
Found valid GPT with protective MBR; using GPT

Disk /dev/disks/mpx.vmhba32:C0:T0:L1: 62685184 sectors, 59.7M
Logical sector size: 512
Disk identifier (GUID): 1994f3d3-44e1-4628-88f5-5c2918a7dcbc
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 62685150

Number  Start (sector)    End (sector)  Size       Code  Name
   1              64            8191        8128   0700
   5            8224          …
0
This is using a SuSE Enterprise Linux 11 with SP4. A bash shell script was used to do the backup (zipped) from /mm/data1/sqmdat to /mm/data1/Backup. /mm is a cifs mounting of //mmcentral/mm. Please see the attached script. This shell script was scheduled to run as a cron job at 4:30 am daily.

The problem is, we getting a series of "MM Remove Error: DMPxx (CODE: 1)" everyday. If I were interpret correctly, this script is do a check on files for past 65 days, and will "list" those files and then do a "zipping". After that, these zipped files were "moved" to /mm/data1/Backup folder. The last step is, to do the removing. However, it seems that problem happened here, and eventually a mail was sent with "MM Remove error".

Appreciate for the helps.
bck.mmTEST.sh
0
I have just recently installed Ubuntu Desktop 18.10 on my old iMac, which I'm running at a remote location. All is working great, except I'm unable to get the VPN L2TP based client to connect successfully back to my Windows 2012 Server at home. This is a VPN server I know to be working fine, as am able to connect to no problem from both Windows 10 and MacOS integrated VPN clients.

In this configuration I'm using a pre-shared key, as well as the AD user credentials when logging-in to the L2TP VPN. On Ubuntu, I suspect the Phase1 and Phase2 algorithms need setting in the Advanced section of the IPSec options, but everything I've tried to enter here has bought no joy.

Does anyone have any thoughts on what I might need to enter here? I ran "sudo ike-scan server.domain.com" on the terminal command line, and in amongst various details it returned the following IKE details of my L2TP server:

"SA=(Enc=3DES Hash=SHA1 Group=2:modp1024 Auth=PSK"

As some have suggested, I've set variations of these details in the Phase1 and Phase2 algorithm boxes to no avail.

If anyone has any thoughts on how this might be resolved, I'd be grateful to hear them.

Many thanks :-)
0
Hi,
There is a sftp server i am connecting to .
How do i know the encryption algorithms available/enabled at server end ?
This must be the encryptions in SSH.
So if i login to the server..Is there any command to show the list of algo supported by server for sftp?

Thanks
0
OWASP Proactive Controls
LVL 13
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

HI,
I am getting the following error during SFTP connection -
Screenshot-2019-04-06-at-7.09.28-PM.pngwhat could be the reason for that
I am using the
 <dependency>
            <groupId>com.jcraft</groupId>
            <artifactId>jsch</artifactId>
            <version>0.1.54</version>
        </dependency>

dependency in my java code
Thanks
0
Hi,
I want to set the java version at terminal permanently to java 8.
Currently by default it is set to java 10.
I always have to do export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

How do i avoid this everytime ?

Thanks
0
HI,
there are some commands which i often need to type and are important on my mac terminal.
But sometimes when you dont use it for some days it gets deleted from the history.
How do i add some commands permanently to the history so that i can alaways reverse search on command line ?

Thanks
0
I am facing issue with cyrus-imap roundcube. Round cube is taking long time to login and loading very slow. I am using kolab-community server. can any one help me in this regards?

Thanks
0
This is a SuSE 11 SP4 VMware virtual machine. Initially 1 virtual hard disk was allocated with 140 GB. However, the disk space is getting less, and we increase this virtual hard disk size with additional 50 GB. The SuSE disk layout is as follows,

# df -h
Filesystem                              Size  Used Avail Use% Mounted on
/dev/sda2                                38G   35G  2.1G  95% /
udev                                    7.8G  100K  7.8G   1% /dev
tmpfs                                   7.8G   76K  7.8G   1% /dev/shm
/dev/sda4                                50G   43G  4.4G  91% /opt/omd/sites/ssp/var
tmpfs                                   7.8G   29M  7.8G   1% /opt/omd/sites/ssp/tmp
/dev/sda3                                40G   34G  4.3G  89% /opt/repo

The partition that we intend to increase is /dev/sda2. On SuSE, we run "echo '- - -' > /sys/class/scsi_host/hostX/rescan"; replace X with 0, 1, and 2.

Now, if you type "fdisk -l", you manage to see additional 50 GB is added (as unpatitioned)

# fdisk -l

Disk /dev/sda: 204.0 GB, 204010946560 bytes
255 heads, 63 sectors/track, 24802 cylinders, total 398458880 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007dea3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048     4208639     2103296   82  Linux swap / Solaris
/dev/sda2   *     …
0
Unable to run or re-link reports after cloning apps to 64 bit Linux from 32 Linux.

I am on EBS 12.0.0.6

One thing I noted is that on the source 32 bit server the java version is:
 "1.4.2"

On the target 64 bit server, the command "java -version" produces this:
"1.7.0_65"

I feel like that is part of the problem, but I might be wrong.

Any thoughts anyone?

Everything else works, DB, and all other aspects of apps.

If I run a report, it just runs forever.
0

Linux

66K

Solutions

33K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.